-
-
Notifications
You must be signed in to change notification settings - Fork 449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install /build failure in docker image #466
Comments
Hi, @ashander this looks like a npm permissions issue. The issue is with installing Either you'll need to make sure your user owns the Hopefully that helps the debugging! |
Thanks Joe! I noticed the README mentions this too: https://docs.npmjs.com/getting-started/fixing-npm-permissions Unfortunately I didn't notice before filing the issue that EACCES shows up in my log. Otherwise, I would have gone down the permissions rabbit hole first. - Jaime |
|
@mafintosh thanks! This worked on the node 5.8 image without any other permission fix. The issue, as I understand it, was this:
Thanks again. For completeness, this is what worked: docker pull node:5.8
docker run node:5.8 npm install -g --unsafe dat
#...
#npm info it worked if it ends with ok
#npm info using npm@3.7.3
#npm info using node@v5.8.0
#+-- dat@9.8.2
# ...
#npm info ok |
For others who run into this, I'll also note that the steps suggested under option 1 to change permissions (namely $ grep EACCES npm-debug.log
$ grep -C 10 ELIFECYCLE npm-debug.log
#32944 verbose stack at emitTwo (events.js:100:13)
#32944 verbose stack at ChildProcess.emit (events.js:185:7)
#32944 verbose stack at maybeClose (internal/child_process.js:850:16)
#32944 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
#32945 verbose pkgid rabin@1.4.0
#32946 verbose cwd /
#32947 error Linux 4.1.18-boot2docker
#32948 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "dat"
#32949 error node v5.9.0
#32950 error npm v3.7.3
#32951 error code ELIFECYCLE
#32952 error rabin@1.4.0 install: `prebuild --download && echo "Installed prebuilt binary successfully.
#32952 error "`
#32952 error Exit status 2
#32953 error Failed at the rabin@1.4.0 install script 'prebuild --download && echo "Installed prebuilt #binary successfully.
#32953 error "'.
#32953 error Make sure you have the latest version of node.js and npm installed.
#32953 error If you do, this is most likely a problem with the rabin package,
#32953 error not with npm itself.
#32953 error Tell the author that this fails on your system:
#32953 error prebuild --download && echo "Installed prebuilt binary successfully.
$ I think this is because of what I wrote above: the scripts command is still run as non-root. |
Using
docker pull node:5.8.0
from the dockerfile here the build failed on rabin@1.4.0. (Relevant part of the log is below)I will try to look into this more at some point, but at least it should be reproducible ;)
Tail of the log
The text was updated successfully, but these errors were encountered: