|Image Source : http://www.infragistics.com/|
The process of Installing Node.js on Windows is very easy. You just have to download the correct version of node.js from the official site of node.js and execute the installer and you are done.!! In this tutorial we'll see the complete process in detail.
The very first step is to download the node.js version for windows. Go to node.js official site nodejs.org and download it.
Once downloaded, run the installer.I have downloaded the latest version having name
"node-v0.10.32-x86.msi". On clicking of the installer, the below screen will appear.
Click on 'Run'. It will display the following screen.Click on Next button.
Check the box to accept the licence agreement and click on next button.
Here you can change the destination folder. "C:\Program Files\nodejs" is the default folder. Click on Next.
Just Click the icons in the tree in order to change the way features will be installed , and Click Next.
Click on Install to start the installation. Click Back to change or review any of your installation settings.
You can see the installing process is running...
Click the Finish button to exit Setup wizard. Node.js has been successfully installed now.
Make sure that path command "C:\Program Files\nodejs" is included in PATH environment variable.
Right Click on computer icon on your desktop. Click on properties.now click on Advanced system settings. Now click on Environment Variables. New screen will be display in which select the Path variable and press Edit.
New screen for the Edit System Variable will be populated.In which make sure that "C:\Program Files\nodejs" is added as Variable value.
All things are done. It's time to check the installed version of node.js. Run the below command in cmd.
Enjoy you have Node.js installed in your windows.
When you try to install new modules via npm, you might get the following error,
Error: ENOENT, stat 'C:\\Users\yourname\AppData\Roaming\npm'
To solve this issue just create one folder called 'npm' in your AppData\Roaming folder. After that try to install the modules via npm install command again. The issue must be resolved.. :)