Closed marsinvasion closed 10 years ago
Can you include the error log that precedes the log you posted?
This only shows there was an error, not what the error was.
I'm doing npm install hiredis 2>&1 | tee res.txt on my Ubuntu machine and got same error.
Full res.txt is here:
npm http GET https://registry.npmjs.org/hiredis
npm http 304 https://registry.npmjs.org/hiredis
npm http GET https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/bindings
> hiredis@0.1.16 install /home/ubuntu/node_modules/hiredis
> node-gyp rebuild
Traceback (most recent call last):
File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 18, in <module>
sys.exit(gyp.script_main())
AttributeError: 'module' object has no attribute 'script_main'
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:340:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.11.0-15-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/ubuntu/node_modules/hiredis
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.13.0
gyp ERR! not ok
npm ERR! hiredis@0.1.16 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the hiredis@0.1.16 install script.
npm ERR! This is most likely a problem with the hiredis 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 hiredis
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.11.0-15-generic
npm ERR! command "node" "/usr/bin/npm" "install" "hiredis"
npm ERR! cwd /home/ubuntu
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.6
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/ubuntu/npm-debug.log
npm ERR! not ok code 0
Can you please fix it?
Same trying to update hiredis to 0.1.16
9874 verbose lock optimist@0.3.7 /home/tadeu/.npm/090e1d8d-optimist-0-3-7.lock
9875 info hiredis@0.1.16 Failed to exec install script
9876 info /home/tadeu/projects/onsite-server/node_modules/hiredis unbuild
9877 info preuninstall hiredis@0.1.16
9878 verbose unsafe-perm in lifecycle true
9879 info uninstall hiredis@0.1.16
9880 verbose true,/home/tadeu/projects/onsite-server/node_modules,/home/tadeu/projects/onsite-server/node_modules unbuild hiredis@0.1.16
9881 info postuninstall hiredis@0.1.16
9882 error hiredis@0.1.16 install: node-gyp rebuild
9882 error Exit status 1
9883 error Failed at the hiredis@0.1.16 install script.
9883 error This is most likely a problem with the hiredis package,
9883 error not with npm itself.
9883 error Tell the author that this fails on your system:
9883 error node-gyp rebuild
9883 error You can get their info via:
9883 error npm owner ls hiredis
9883 error There is likely additional logging output above.
9884 error System Linux 3.11.0-18-generic
9885 error command "node" "/usr/local/bin/npm" "install"
9886 error cwd /home/tadeu/projects/onsite-server
9887 error node -v v0.10.26
9888 error npm -v 1.4.4
9889 error code ELIFECYCLE
9890 verbose exit [ 1, true ]
I'm presuming this is related
14106 error hiredis@0.1.16 install: `node-gyp rebuild`
14106 error Exit status 1
14107 error Failed at the hiredis@0.1.16 install script.
14107 error This is most likely a problem with the hiredis package,
14107 error not with npm itself.
14107 error Tell the author that this fails on your system:
14107 error node-gyp rebuild
14107 error You can get their info via:
14107 error npm owner ls hiredis
14107 error There is likely additional logging output above.
14108 error System Linux 3.2.0-23-generic-pae
14109 error command "/usr/bin/node" "/usr/bin/npm" "install"
14110 error cwd /root/vlnp-server
14111 error node -v v0.10.26
14112 error npm -v 1.4.3
14113 error code ELIFECYCLE
14114 verbose exit [ 1, true ]
A quick search leads me here: https://github.com/TooTallNate/node-gyp/issues/363
It looks like this issue is related to either a) gyp being installed through a distribution's package manager, or b) gyp running with Python 2.7. Please refer to that issue for other possible solutions.
gyp ERR! build error gyp ERR! stack Error:
make
failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/home/dev/.nvm/v0.10.22/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12) gyp ERR! System Linux 2.6.32-042stab084.14 gyp ERR! command "node" "/home/dev/.nvm/v0.10.22/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/dev/node/node_modules/node-cron-jobs/node_modules/time gyp ERR! node -v v0.10.22 gyp ERR! node-gyp -v v0.11.0 gyp ERR! not ok npm ERR! hiredis@0.1.16 install:node-gyp rebuild
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the hiredis@0.1.16 install script. npm ERR! This is most likely a problem with the hiredis 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 hiredis npm ERR! There is likely additional logging output above. npm ERR! System Linux 2.6.32-042stab084.14 npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" npm ERR! cwd /home/dev/node npm ERR! node -v v0.10.22 npm ERR! npm -v 1.3.14 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/dev/node/npm-debug.log npm ERR! not ok code 0