unsetbit / p

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

ENOENT error on windows 7 #1

Closed bahtou closed 10 years ago

bahtou commented 11 years ago

npm install -g onramp

npm http GET https://registry.npmjs.org/onramp npm http 304 https://registry.npmjs.org/onramp npm WARN package.json onramp@0.1.0 No repository field. npm http GET https://registry.npmjs.org/node-uuid npm http GET https://registry.npmjs.org/websocket npm http GET https://registry.npmjs.org/commander npm http 304 https://registry.npmjs.org/node-uuid npm http 304 https://registry.npmjs.org/websocket npm http 304 https://registry.npmjs.org/commander npm http GET https://registry.npmjs.org/keypress

websocket@1.0.8 install C:\Users\AppData\Roaming\npm\node_modules\onramp\nod e_modules\websocket node install.js

npm ERR! Error: spawn ENOENT npm ERR! at errnoException (child_process.js:980:11) npm ERR! at Process.ChildProcess._handle.onexit (child_process.js:771:34) npm ERR! If you need help, you may report this log at: npm ERR! http://github.com/isaacs/npm/issues npm ERR! or email it to: npm ERR! npm-@googlegroups.com

npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Program Files (x8 6)\nodejs\node_modules\npm\bin\npm-cli.js" "install" "-g" "onramp" npm ERR! cwd C:\Users npm ERR! node -v v0.10.9 npm ERR! npm -v 1.2.24 npm ERR! syscall spawn npm ERR! code ENOENT npm ERR! errno ENOENT npm http 304 https://registry.npmjs.org/keypress npm ERR! npm ERR! Additional logging details can be found in: npm ERR! C:\Users\npm-debug.log npm ERR! not ok code 0

unsetbit commented 11 years ago

Looks like you're having trouble installing the websocket dependency. Are you using cygwin by chance?

bahtou commented 11 years ago

yes

should I be ?

unsetbit commented 11 years ago

That's probably the issue, cygwin is not supported (https://github.com/joyent/node/wiki/Building-node.js-on-Cygwin-(Windows)). Try installing it through your standard windows command line.

If you want a more useful command line you can try msysGit, which is a thin layer on top of the command line instead of the thick layer cygwin lays down.