socketio / socket.io

Realtime application framework (Node.JS server)
https://socket.io
MIT License
60.85k stars 10.09k forks source link

Error installing sockets.io using npm windows 7 #1117

Closed Decoderx closed 10 years ago

Decoderx commented 11 years ago

I'm not able to install sockets.io on my windows 7 machine , I've tried using node-v0.8.16-x86.msi, node-v0.8.16-x64.msi, as well as older versions but getting the same error again and again . please help .here's the error messages I'm getting on prompt:

C:\pawan\gamedevelopment\nodetesting>npm install socket.io npm http GET https://registry.npmjs.org/socket.io npm http 304 https://registry.npmjs.org/socket.io npm http GET https://registry.npmjs.org/socket.io-client/0.9.11 npm http GET https://registry.npmjs.org/base64id/0.1.0 npm http GET https://registry.npmjs.org/policyfile/0.0.4 npm http GET https://registry.npmjs.org/redis/0.7.3 npm http 304 https://registry.npmjs.org/socket.io-client/0.9.11 npm http 304 https://registry.npmjs.org/policyfile/0.0.4 npm http 304 https://registry.npmjs.org/redis/0.7.3 npm http 304 https://registry.npmjs.org/base64id/0.1.0 npm http GET https://registry.npmjs.org/ws npm http GET https://registry.npmjs.org/xmlhttprequest/1.4.2 npm http GET https://registry.npmjs.org/active-x-obfuscator/0.0.1 npm http GET https://registry.npmjs.org/uglify-js/1.2.5 npm http 304 https://registry.npmjs.org/uglify-js/1.2.5 npm http 304 https://registry.npmjs.org/xmlhttprequest/1.4.2 npm http 304 https://registry.npmjs.org/active-x-obfuscator/0.0.1 npm http 304 https://registry.npmjs.org/ws npm http GET https://registry.npmjs.org/zeparser/0.0.5 npm http GET https://registry.npmjs.org/commander npm http GET https://registry.npmjs.org/tinycolor npm http GET https://registry.npmjs.org/options npm http 304 https://registry.npmjs.org/zeparser/0.0.5 npm http 304 https://registry.npmjs.org/tinycolor npm http 304 https://registry.npmjs.org/options npm http 304 https://registry.npmjs.org/commander

ws@0.4.25 install C:\pawan\gamedevelopment\nodetesting\node_modules\socket.io\ node_modules\socket.io-client\node_modules\ws (node-gyp rebuild 2> builderror.log) || (exit 0)

CreateProcessW: The system cannot find the file specified. npm ERR! error rolling back Error: ENOTEMPTY, rmdir 'C:\pawan\gamedevelopment\no detesting\node_modules\socket.io\node_modules\socket.io-client\node_modules\acti ve-x-obfuscator\node_modules\zeparser' npm ERR! error rolling back socket.io-client@0.9.11 { [Error: ENOTEMPTY, rmdir 'C:\pawan\gamedevelopment\nodetesting\node_modules\socket.io\node_modules\socket .io-client\node_modules\active-x-obfuscator\node_modules\zeparser'] npm ERR! error rolling back errno: 53, npm ERR! error rolling back code: 'ENOTEMPTY', npm ERR! error rolling back path: 'C:\pawan\gamedevelopment\nodetesting\no de_modules\socket.io\node_modules\socket.io-client\node_modules\active-x-ob fuscator\node_modules\zeparser' } npm ERR! error rolling back Error: EPERM, lstat 'C:\pawan\gamedevelopment\nodete sting\node_modules\socket.io\node_modules\socket.io-client\node_modules\active-x -obfuscator\node_modules\zeparser\benchmark.html' npm ERR! error rolling back socket.io@0.9.13 { [Error: EPERM, lstat 'C:\pawan\g amedevelopment\nodetesting\node_modules\socket.io\node_modules\socket.io-client\ node_modules\active-x-obfuscator\node_modules\zeparser\benchmark.html'] npm ERR! error rolling back errno: 50, npm ERR! error rolling back code: 'EPERM', npm ERR! error rolling back path: 'C:\pawan\gamedevelopment\nodetesting\no de_modules\socket.io\node_modules\socket.io-client\node_modules\active-x-ob fuscator\node_modules\zeparser\benchmark.html' } npm ERR! ws@0.4.25 install: (node-gyp rebuild 2> builderror.log) || (exit 0) npm ERR! cmd "/c" "(node-gyp rebuild 2> builderror.log) || (exit 0)" failed wi th 127 npm ERR! npm ERR! Failed at the ws@0.4.25 install script. npm ERR! This is most likely a problem with the ws package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! (node-gyp rebuild 2> builderror.log) || (exit 0) npm ERR! You can get their info via: npm ERR! npm owner ls ws npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nod ejs\node_modules\npm\bin\npm-cli.js" "install" "--production" "socket.io" npm ERR! cwd C:\pawan\gamedevelopment\nodetesting npm ERR! node -v v0.8.3 npm ERR! npm -v 1.1.43 npm ERR! code ELIFECYCLE npm ERR! stack Error: ws@0.4.25 install: (node-gyp rebuild 2> builderror.log) | | (exit 0) npm ERR! stack cmd "/c" "(node-gyp rebuild 2> builderror.log) || (exit 0)" fai led with 127 npm ERR! stack at ChildProcess. (C:\Program Files\nodejs\node_mod ules\npm\lib\utils\exec.js:56:20) npm ERR! stack at ChildProcess.EventEmitter.emit (events.js:91:17) npm ERR! stack at Process._handle.onexit (child_process.js:674:10) npm ERR! Error: ENOENT, lstat 'C:\pawan\gamedevelopment\nodetesting\node_modules \socket.io\node_modules\socket.io-client\node_modules\active-x-obfuscator\node_m odules\zeparser\benchmark.html' 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\nodejs\node.exe" "C:\Program Files\nod ejs\node_modules\npm\bin\npm-cli.js" "install" "--production" "socket.io" npm ERR! cwd C:\pawan\gamedevelopment\nodetesting npm ERR! node -v v0.8.3 npm ERR! npm -v 1.1.43 npm ERR! path C:\pawan\gamedevelopment\nodetesting\node_modules\socket.io\node_m odules\socket.io-client\node_modules\active-x-obfuscator\node_modules\zeparser\b enchmark.html npm ERR! fstream_path C:\pawan\gamedevelopment\nodetesting\node_modules\socket.i o\node_modules\socket.io-client\node_modules\active-x-obfuscator\node_modules\ze parser\benchmark.html npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! errno 34 npm ERR! fstream_stack Writer._finish.er.fstream_finish_call (C:\Program Files\n odejs\node_modules\npm\node_modules\fstream\lib\writer.js:284:26) npm ERR! fstream_stack Object.oncomplete (fs.js:297:15) npm ERR! npm ERR! Additional logging details can be found in: npm ERR! C:\pawan\gamedevelopment\nodetesting\npm-debug.log npm ERR! not ok code 0

enavarro42 commented 11 years ago

I have the same problem, please help

niraj-prasad commented 10 years ago

I have the same problem in Mac OS X 10.8. Please help. I am using Node -v : 10.28 and npm -v 1.4.9.