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


Question

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.

1
18
7/16/2017 10:22:10 AM

Accepted Answer

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

14
7/16/2017 10:22:37 AM

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


Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon