In this tutorial, we shall provide detailed step by step process to install Node.js software on your PC running on Windows Operating System.
Installation of Node.js on Windows 10
-
Download Node.js package.
Latest releases of Node.js are available at [https://nodejs.org/download/release/latest/].
Based on the architecture of your Windows Operating System, download the appropriate .zip or .7z file. To know your windows architecture (x64 or x86), run the command
wmic OS get OSArchitecture
in Command Prompt.The PC is running on x64, we have chosen x64.zip file to download.
-
Extract the zip file.
Extract the zip file and copy the
nodejs
folder toC:\Program Files
. -
Setup Environment Variable for Node.js.
Now we should let the PC know that we have a program called node at location “C:\Program Files\nodejs” Add this location to System Environment Path variable.
-
Verify the installation.
Ha! We are done with the installation of node in Windows. Now its time to check if the installation is successful. Open Command Prompt and run the command
node
. Node Shell would be started. -
Check Node Version.
To check Node Version, run either
node -v
ornode --version
in the command prompt.
Conclusion
In this NodeJS Tutorial, we have learnt how to install Node.js on Windows OS. In our next tutorial, we shall get started with Basic Node.js Application Example.