Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

It's possible to install socket.io manually?

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

like image 466
cl0udw4lk3r Avatar asked Mar 19 '12 11:03

cl0udw4lk3r


2 Answers

Yes. 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

like image 79
Saebekassebil Avatar answered Nov 02 '22 18:11

Saebekassebil


For Win7 64-bit, here's what I did to install Socket.IO:

  1. Install node.js. It ends up in "C:\Program Files (x86)\nodejs."
  2. 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"
  3. Open a DOS window (cmd) running as Administrator and change directory to "C:\Program Files (x86)\nodejs\node_modules\npm."
  4. In that DOS window, run "npm install Socket.IO"
  5. The new socket.io module is located in "C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\socket.io"
like image 21
Michael Nguyen Avatar answered Nov 02 '22 18:11

Michael Nguyen