You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Failed to install prebuilt binary - add debug info to help figure out reason #758
Installing nodegit in a node.js Docker image based on node:latest. npm install says "Failed to install prebuilt binary, building manually". This takes forever.
Same happens in my CI environment (TeamCity agents running on Docker containers).
What frustrates me the most is my inability to investigate why this happens. Any way you can pipe the error to stderr or stdout so as to help users investigate?
In #774 additional log outputs have been added for each step as if there was a gyp compile error, the install would just exit without warning, the the verbose log just had a whole bunch of natter in there.
I've been meaning to make the output more verbose. As for why it fails to find a prebuilt binary? I don't think node-pre-gyp gives us anything meaningful in that regard, but I'm not totally sure about that tbh.
The actual issue at hand appears to be related to permissions with the published binary, I'm getting a 403. Adding a pr in just a second to print this info though.
Fixed in the above PR.
Side note: The binaries aren't downloading because with CI, we only build in ia32, not x64, so x64 is naturally not getting published. Going to manually publish 0.5.0 for win32x64, and then try to figure out how to get it to just build in x64 except for publishing builds.
Activity
electricmonk commentedon Oct 19, 2015
Update: also happens on the 'node:0.12.7' image
saper commentedon Oct 19, 2015
Can you produce
npm-debug.logfile and/or verbose npm output?electricmonk commentedon Oct 19, 2015
Not really helpful. I can post the entire verbose log, but it's very verbose :)
saper commentedon Oct 19, 2015
electricmonk commentedon Oct 19, 2015
https://gist.github.com/electricmonk/93896810f0d8807fbe08
saper commentedon Oct 20, 2015
You need to configure your npm
unsafe-permto true, or create a non-root user in the container and use it in your npm setup.electricmonk commentedon Oct 20, 2015
I tried both, neither seems to have any effect
saper commentedon Oct 20, 2015
I have no solution then, sorry.
electricmonk commentedon Oct 20, 2015
Any way we can print the failure reason to stderr / stdout?
samkelleher commentedon Nov 7, 2015
In #774 additional log outputs have been added for each step as if there was a gyp compile error, the install would just exit without warning, the the verbose log just had a whole bunch of natter in there.
maxkorp commentedon Nov 9, 2015
I've been meaning to make the output more verbose. As for why it fails to find a prebuilt binary? I don't think node-pre-gyp gives us anything meaningful in that regard, but I'm not totally sure about that tbh.
maxkorp commentedon Nov 9, 2015
The actual issue at hand appears to be related to permissions with the published binary, I'm getting a 403. Adding a pr in just a second to print this info though.
maxkorp commentedon Nov 9, 2015
Fixed in the above PR.
Side note: The binaries aren't downloading because with CI, we only build in ia32, not x64, so x64 is naturally not getting published. Going to manually publish 0.5.0 for win32x64, and then try to figure out how to get it to just build in x64 except for publishing builds.
tbranyen commentedon Jan 15, 2016
This looks resolved, so closing for now, please comment to re-open if I closed in error.