TooTallNate / node-lame

Node.js native bindings to libmp3lame & libmpg123
MIT License
567 stars 113 forks source link

npm install lame fails - node-gyp rebuild #23

Closed evanriley closed 10 years ago

evanriley commented 10 years ago

After trying to install lame, I get the following error.

xbmc@xbmc:~/cbot/lisa$ sudo npm install lame npm http GET https://registry.npmjs.org/lame npm http 304 https://registry.npmjs.org/lame npm http GET https://registry.npmjs.org/debug npm http GET https://registry.npmjs.org/readable-stream npm http GET https://registry.npmjs.org/bindings npm http 304 https://registry.npmjs.org/bindings npm http 304 https://registry.npmjs.org/debug npm http 304 https://registry.npmjs.org/readable-stream npm http GET https://registry.npmjs.org/core-util-is npm http GET https://registry.npmjs.org/debuglog/0.0.2 npm http 304 https://registry.npmjs.org/core-util-is npm http 304 https://registry.npmjs.org/debuglog/0.0.2

lame@1.0.3 install /home/xbmc/cbot/lisa/node_modules/lame node-gyp rebuild

gyp ERR! configure error gyp ERR! stack Error: "pre" versions of node cannot be installed, use the --nodedir flag instead gyp ERR! stack at install (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:65:16) gyp ERR! stack at Object.self.commands.(anonymous function) as install gyp ERR! stack at getNodeDir (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:150:20) gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:93:9 gyp ERR! stack at ChildProcess.exithandler (child_process.js:694:7) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:104:17) gyp ERR! stack at maybeClose (child_process.js:808:16) gyp ERR! stack at Socket. (child_process.js:1025:11) gyp ERR! stack at Socket.EventEmitter.emit (events.js:101:17) gyp ERR! stack at Pipe.close (net.js:459:12) gyp ERR! System Linux 3.5.0-44-generic gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/xbmc/cbot/lisa/node_modules/lame gyp ERR! node -v v0.11.10-pre gyp ERR! node-gyp -v v0.12.1 gyp ERR! not ok npm ERR! lame@1.0.3 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the lame@1.0.3 install script. npm ERR! This is most likely a problem with the lame 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 lame npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.5.0-44-generic npm ERR! command "node" "/usr/local/bin/npm" "install" "lame" npm ERR! cwd /home/xbmc/cbot/lisa npm ERR! node -v v0.11.10-pre npm ERR! npm -v 1.3.21 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/xbmc/cbot/lisa/npm-debug.log npm ERR! not ok code 0

evanriley commented 10 years ago

The issue was fixed by change node version from v0.11.10-pre to v0.10.24.