Skip to content
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

UNCAUGHT EXCEPTION Error: EPERM #222

Closed
biegl opened this issue Mar 22, 2013 · 5 comments
Closed

UNCAUGHT EXCEPTION Error: EPERM #222

biegl opened this issue Mar 22, 2013 · 5 comments

Comments

@biegl
Copy link

biegl commented Mar 22, 2013

gyp http 200 http://nodejs.org/dist/v0.10.1/node-v0.10.1.tar.gz
gyp ERR! UNCAUGHT EXCEPTION 
gyp ERR! stack Error: EPERM, utime '/Users/Markus/.node-gyp/0.10.1'
gyp ERR! System Darwin 12.3.0
gyp ERR! command "node" "/usr/local/Cellar/node/0.10.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/share/npm/lib/node_modules/testem/node_modules/bufferstream/node_modules/buffertools
gyp ERR! node -v v0.10.1
gyp ERR! node-gyp -v v0.8.5
gyp ERR! This is a bug in `node-gyp`.
gyp ERR! Please file an Issue:
gyp ERR!     <https://github.com/TooTallNate/node-gyp/issues>
npm http 200 https://registry.npmjs.org/lru-cache/-/lru-cache-1.0.6.tgz
npm ERR! buffertools@1.1.0 install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 7
npm ERR! 
npm ERR! Failed at the buffertools@1.1.0 install script.
npm ERR! This is most likely a problem with the buffertools package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls buffertools
npm ERR! There is likely additional logging output above.
@mscdex
Copy link
Contributor

mscdex commented Mar 28, 2013

Assuming you're installing with root, does root have access to '/Users/Markus/.node-gyp' and/or '/Users/Markus/.node-gyp/0.10.1'?

@TooTallNate
Copy link
Contributor

It's probably more the fact that npm downgrades user permissions of spawned child processes when run as root. I was leaving it open because of the UNCAUGHT EXCEPTION part (meaning I'm not catching the "error" event somewhere...).

I should look into using domains soon :p

@devaKumaraswamy
Copy link

I am able to reproduce this consistently on Centos just trying to install "ref" or "ffi".(see log at end of this note). The permissions on the offending directory'..... /.node-gyp/0.10.29' is:

.node-gyp:
total 48
drwxr-xr-x 3 kumar r&d 4096 Jul 16 12:07 .
drwxrwxrwx 100 kumar r&d 36864 Jul 17 09:04 ..
drwxrwxr-x 2 root root 4096 Jul 16 12:07 0.10.29

.node-gyp/0.10.29:
total 8
drwxrwxr-x 2 root root 4096 Jul 16 12:07 .
drwxr-xr-x 3 kumar r&d 4096 Jul 16 12:07 ..

Naively I am assuming that at the point of this failure the code is not running either under root or my id. I would be glad to debug it further if I can get some pointers as to where to start looking.
I want to point out that it installs perfectly under Ubuntu.

Log:
node-gyp rebuild

gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack Error: EPERM, utime '/r/testserver/vol/vol610/u61/kumar/.node-gyp/0.10.29'
gyp ERR! System Linux 2.6.32-358.11.1.el6.x86_64
gyp ERR! command "node" "/r/testserver/vol/vol610/u61/kumar/node-v0.10.29-linux-x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /r/testserver/vol/vol610/u61/kumar/slim-sas/node_modules/ref
gyp ERR! node -v v0.10.29
gyp ERR! node-gyp -v v0.13.1
gyp ERR! This is a bug in node-gyp.
gyp ERR! Try to update node-gyp and file an Issue if it does not help:
gyp ERR! https://github.com/TooTallNate/node-gyp/issues
npm ERR! ref@0.3.2 install: node-gyp rebuild
npm ERR! Exit status 7
npm ERR!
npm ERR! Failed at the ref@0.3.2 install script.
npm ERR! This is most likely a problem with the ref package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls ref
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 2.6.32-358.11.1.el6.x86_64
npm ERR! command "node" "/r/testserver/vol/vol610/u61/kumar/node-v0.10.29-linux-x64/bin/npm" "install"
npm ERR! cwd /r/testserver/vol/vol610/u61/kumar/slim-sas
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! code ELIFECYCLE

ffi@1.2.7 install /r/testserver/vol/vol610/u61/kumar/slim-sas/node_modules/ffi
node-gyp rebuild

@tk120404
Copy link

@biegl Can you please close this issue if this is not issue any more?

@gibfahn
Copy link
Member

gibfahn commented Mar 15, 2018

If this is still an issue comment and I'll reopen.

@gibfahn gibfahn closed this as completed Mar 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants