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

gyp ERR! UNCAUGHT EXCEPTION #287

Closed
mahnunchik opened this issue Jul 11, 2013 · 4 comments
Closed

gyp ERR! UNCAUGHT EXCEPTION #287

mahnunchik opened this issue Jul 11, 2013 · 4 comments

Comments

@mahnunchik
Copy link

gyp ERR! UNCAUGHT EXCEPTION 
gyp ERR! stack TypeError: Cannot read property '0' of undefined
gyp ERR! stack     at install (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:59:25)
gyp ERR! stack     at Object.self.commands.(anonymous function) [as install] (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js:66:37)
gyp ERR! stack     at getNodeDir (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:219:20)
gyp ERR! stack     at /usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:105:9
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:635:7)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at maybeClose (child_process.js:735:16)
gyp ERR! stack     at Socket.<anonymous> (child_process.js:948:11)
gyp ERR! stack     at Socket.EventEmitter.emit (events.js:95:17)
gyp ERR! stack     at Pipe.close (net.js:466:12)
gyp ERR! System Linux 3.2.0-48-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/evlasenko/photonow/backendtwittersearch/node_modules/hiredis
gyp ERR! node -v v0.10.13
gyp ERR! node-gyp -v v0.10.2
gyp ERR! This is a bug in `node-gyp`.
gyp ERR! Please file an Issue:
gyp ERR!     <https://github.com/TooTallNate/node-gyp/issues>

@mahnunchik
Copy link
Author

I had to update node-gyp globally:

npm update -g node-gyp

@tkoeppen
Copy link

I had the same problem in https://github.com/tomondev/emiflake.

updating node-gyp globally helped me also.

Thanks!

@jjosef
Copy link

jjosef commented Jul 31, 2013

You may experience issues after doing this if you sudo npm install -g node-gyp and then try and build modules which require node-gyp without using sudo.

A fix is to make sure ~/.node-gyp is chown to the correct user.

@JayBeavers
Copy link
Contributor

Issue sounds well known and fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants