Configure Node.js for Windows

In this post we will walkthrough step by step to set up environment for node.js on windows. Very first navigate to Windows Azure Download page and select node.js for Windows to download

image

Once you click on node.js download option for Windows you will get following confirmation windows. Click on Save File.

image

After saving the file when you run the exe, it would launch a Web Platform Installer. You will get option to install Windows Azure SDK for Node.js. Click on Install button to proceed with installation

image

After successful installation you will get information about successful installed products as following in a dialog box.

image

After installation open command prompt as administrator and run the command

npm install azure-g

image

After successful installation of package create a working folder. For example I have created a folder called nodedemo in C drive. Now navigate to http://nodejs.org/ and copy the Hello Word sample from here

image

Create a file called server.js inside nodedemo folder and paste this code. After this run the command

node server.js

image

You will get message that node server is running. Now when you navigate to http:127.0.0.1:1337 , you should be getting following response from the server

image

Once you get this response you can be sure that node server is configured on windows. I hope you find this post useful. Thanks for reading.

 

One response to “Configure Node.js for Windows”

Leave a comment

Create a website or blog at WordPress.com