Posts

Showing posts with the label Socket

How to install Node.js, npm, socket.io and use them?

1 Go to  http://nodejs.org  and click on Install button,  2.. Download node and install it 3.. Create an empty folder on your hard disk      3.1) check environment path of nodejs using command prompt             a) C:\>set %PATH%              If it is not showing any path regarding node then set the environment path             b)  C:\>set path=%PATH%;C:\Program Files\nodejs\ 4.. Create an package.json file with the following content       Ex: C:\Program Files\nodejs\package.json { "name" : "App" , "version" : "0.0.1" , "description" : "App" , "dependencies" : { "socket.io" : "latest" }, "author" : "developer" } 5.. Open windows's command prompt (press Windows key + R and type  cmd ) 6.. Navigate to your newly created directory with  cd  command 7.. Type  npm install  in that directory       7.1)