i've installed nodejs on my work pc some weeks ago... today i've tried to install socket.io
(via npm install socket.io" on my stupid DOS terminal >_>
), but i've some proxy issue then i can't use npm...
It's possible to install Socket.io
manually? Or i've to necessary use npm?
As always sry for my possibly bad english
P.S. my work pc S.O. is winXP
i've installed nodejs on my work pc some weeks ago... today i've tried to install socket.io
(via npm install socket.io" on my stupid DOS terminal >_>
), but i've some proxy issue then i can't use npm...
It's possible to install Socket.io
manually? Or i've to necessary use npm?
As always sry for my possibly bad english
P.S. my work pc S.O. is winXP
Share Improve this question edited Mar 20, 2012 at 12:56 Neysor 3,90911 gold badges35 silver badges66 bronze badges asked Mar 19, 2012 at 11:42 cl0udw4lk3rcl0udw4lk3r 2,7336 gold badges27 silver badges46 bronze badges4 Answers
Reset to default 10Yes. It's possible to install a folder with npm without having to download it with npm. Just download the package source as a .tar or .zip file from GitHub here: https://github.com/LearnBoost/socket.io
If you've chosen the .zip file, then unpack it and do a
npm install <folder>
. With .tar files, you can install directly with npm install <tarfile>
Take a look here for further information: http://npmjs.org/doc/install.html
For Win7 64-bit, here's what I did to install Socket.IO:
- Install node.js. It ends up in "C:\Program Files (x86)\nodejs."
- Extract the socket.io zip file LearnBoost-socket.io-0.9.5-18-g3b9715e.zip into "C:\Program Files (x86)\nodejs\node_modules\npm\Socket.IO"
- Open a DOS window (cmd) running as Administrator and change directory to "C:\Program Files (x86)\nodejs\node_modules\npm."
- In that DOS window, run "npm install Socket.IO"
- The new socket.io module is located in "C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\socket.io"
Specific download link for the zip file: https://github.com/LearnBoost/socket.io/zipball/master
surely restart the windows after install node.js and try this steps.Otherwise cmd say npm not recognize as internal or external command