FS#46761 - [npm] node-gyp error : cannot find node-gyp.js
Attached to Project:
Community Packages
Opened by Sébastien Jalliffier Verne (Volcomix) - Saturday, 17 October 2015, 08:31 GMT
Last edited by Felix Yan (felixonmars) - Saturday, 17 October 2015, 16:03 GMT
Opened by Sébastien Jalliffier Verne (Volcomix) - Saturday, 17 October 2015, 08:31 GMT
Last edited by Felix Yan (felixonmars) - Saturday, 17 October 2015, 16:03 GMT
|
Details
Description:
Wrong node-gyp.js relative path specified in /usr/sbin/node-gyp which refers to this absolute path: /node_modules/node-gyp/bin/node-gyp.js. It throws the following error while executing "node-gyp": $ node-gyp module.js:339 throw err; ^ Error: Cannot find module '/node_modules/node-gyp/bin/node-gyp.js' at Function.Module._resolveFilename (module.js:337:15) at Function.Module._load (module.js:287:25) at Function.Module.runMain (module.js:467:10) at startup (node.js:134:18) at node.js:961:3 Additional info: * package version(s) local/npm 3.3.8-1 * config and/or log files etc. $ which node-gyp /usr/sbin/node-gyp $ cat /usr/sbin/node-gyp #!/usr/bin/env sh if [ "x$npm_config_node_gyp" = "x" ]; then node "`dirname "$0"`/../../node_modules/node-gyp/bin/node-gyp.js" "$@" else "$npm_config_node_gyp" "$@" fi Steps to reproduce: Run node-gyp |
This task depends upon
Closed by Felix Yan (felixonmars)
Saturday, 17 October 2015, 16:03 GMT
Reason for closing: Fixed
Additional comments about closing: 3.3.8-2
Saturday, 17 October 2015, 16:03 GMT
Reason for closing: Fixed
Additional comments about closing: 3.3.8-2