Introduction
This tip is about installing socket.io
on node.js on Windows 8. We (me and my colleague Ahmed Damak) worked on this as part of a project in the fourth year in university. There is no good install guide for socket.io on node.js on the internet, so we decide to make it happen.
Background
Node.js can make working with Websockets very easy when using the Socket.io
library. Using websockets
, you can easily build realtime applications like chat box. Today, we will show you how to easily install the library to build a simple program using Node.js and Socket.io
.
Note: To go through this tip, you will need to download Node.js.
Install Guide
You create a folder that will encapsulate the node.js server part of the project as socketioexemple folder name. Put yourself in the project file created earlier "socketioexemple" and run the command:
npm install socket.io
This command installs the project folder in the library socket.io
. In this case, it is only available for the project.

After we did the test node app.js, make sure to place it in the folder in which the script was created app.js. But the console will display such error due to lack of other files. You should follow the approach given below.
Note: After the launch of each installation must verify connectivity of the server where the files are missing.

install socket.io-parser


Install debug

Installation has-binary-data


Installation de socket.io-adapter


Installation module ent


and for the last step, we made a connectivity test:

Note: If you noticed whenever you must check if there is a module does not exist.