TooTallNate / node-speaker

Output PCM audio data to the speakers
651 stars 146 forks source link

libasound2-dev installed,fail to install node-speaker #31

Closed kunlive closed 10 years ago

kunlive commented 10 years ago

it's in ubuntu 14.04

kunlive commented 10 years ago

node-gyp rebuild

Usage: gyp_main.py [options ...] [build_file ...]

gyp_main.py: error: no such option: --no-parallel gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 2 gyp ERR! stack at ChildProcess.onCpExit (/usr/local/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:807:12) gyp ERR! System Linux 3.13.0-24-generic gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/tian/node_modules/speaker gyp ERR! node -v v0.10.28 gyp ERR! node-gyp -v v0.13.0 gyp ERR! not ok npm ERR! speaker@0.1.0 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the speaker@0.1.0 install script. npm ERR! This is most likely a problem with the speaker 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 speaker npm ERR! There is likely additional logging output above.

kunlive commented 10 years ago

speaker@0.1.0 install /usr/local/lib/node_modules/speaker node-gyp rebuild

Usage: gyp_main.py [options ...] [build_file ...]

gyp_main.py: error: no such option: --no-parallel gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 2 gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/cnpm/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:807:12) gyp ERR! System Linux 3.13.0-24-generic gyp ERR! command "node" "/usr/local/lib/node_modules/cnpm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /usr/local/lib/node_modules/speaker gyp ERR! node -v v0.10.28 gyp ERR! node-gyp -v v0.13.0 gyp ERR! not ok npm ERR! speaker@0.1.0 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the speaker@0.1.0 install script. npm ERR! This is most likely a problem with the speaker 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 speaker npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.13.0-24-generic npm ERR! command "node" "/usr/local/lib/node_modules/cnpm/node_modules/.bin/npm" "--userconfig=/home/tian/.cnpmrc" "--disturl=http://npm.taobao.org/dist" "--cache=/home/tian/.npm/.cache_cnpm" "--registry=http://registry.npm.taobao.org" "install" "speaker" "-g" npm ERR! cwd /home/tian npm ERR! node -v v0.10.28 npm ERR! npm -v 1.4.10 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/tian/npm-debug.log npm ERR! not ok code 0

TooTallNate commented 10 years ago

I believe that you have a global installation of gyp that's overwriting node-gyp's local copy. Try uninstalling any global version of gyp first.