unsetbit / p

Peer-to-peer networking with browsers
http://unsetbit.com/p
Other
411 stars 27 forks source link

Failed to install onramp #2

Closed bolei closed 10 years ago

bolei commented 10 years ago

~$ sudo npm install -g onramp

npm http GET https://registry.npmjs.org/onramp npm http 304 https://registry.npmjs.org/onramp npm http GET https://registry.npmjs.org/node-uuid npm http GET https://registry.npmjs.org/commander npm http GET https://registry.npmjs.org/websocket npm http 304 https://registry.npmjs.org/websocket npm http 304 https://registry.npmjs.org/node-uuid npm http 304 https://registry.npmjs.org/commander npm http GET https://registry.npmjs.org/keypress

websocket@1.0.8 install /usr/local/lib/node_modules/onramp/node_modules/websocket node install.js

sh: 1: node: not found npm WARN This failure might be due to the use of legacy binary "node" npm WARN For further explanations, please read /usr/share/doc/nodejs/README.Debian

npm ERR! websocket@1.0.8 install: node install.js npm ERR! sh "-c" "node install.js" failed with 127 npm ERR! npm ERR! Failed at the websocket@1.0.8 install script. npm ERR! This is most likely a problem with the websocket package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node install.js npm ERR! You can get their info via: npm ERR! npm owner ls websocket npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.11.0-12-generic npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "onramp" npm ERR! cwd /home/bolei npm ERR! node -v v0.10.15 npm ERR! npm -v 1.2.18 npm ERR! code ELIFECYCLE npm http 304 https://registry.npmjs.org/keypress npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/bolei/npm-debug.log npm ERR! not ok code 0

unsetbit commented 10 years ago

That looks like it just can't find node... sh: 1: node: not found . It may be because you have nodejs instead of node for your binary, if you create an alias called node it may resolve the issue. When you type in node in your command line, does it launch node?