Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Node.js + Socket.io + Windows 7 / 8?

I've been searching everywhere, but can't seem to find a solution. Is it possible to install Socket.io on Node.js on Windows 7?

If not, is there some sort of alternative, or do you know of any future Windows support?

Usually the Node.js package manager is used, however I can't find a way of installing that on Windows. http://npmjs.org/

I'm currently using Node.exe (not running it through Cygwin).

This is how I'd imagine it would be installed on Windows, if NPM worked:

npm install socket.io

Node Package Manager now works on Windows 7

Simply install Node.js and type npm install socket.io into the Windows console and look in C:\Users\[insert username]\node_modules.

like image 839
Jack Avatar asked Sep 01 '11 17:09

Jack


3 Answers

I am confirming that npm install socket.io works perfectly with Node.js 0.6.10 on Windows 7 (remember to run cmd as Administrator).

like image 170
Velojet Avatar answered Oct 19 '22 08:10

Velojet


For anyone who is having trouble getting Node.js and socket.io working on Windows...

There is the nodejs-win project on Google Code.

http://code.google.com/p/nodejs-win/downloads/detail?name=node_setup_0.5.6.7.exe&can=2&q=

And here is a video that shows the basics of using it.

Node.JS & Socket.IO Chat System in Windows

like image 5
user972553 Avatar answered Oct 19 '22 06:10

user972553


Now that Node.js version 0.6.0 is available, and it seems pretty stable so far, I'm going to suggest using it if you're planning on developing on Windows.

http://nodejs.org/download/

like image 4
Jack Avatar answered Oct 19 '22 06:10

Jack