So let’s start with the step-wise guide.
Step 1: Download Node.js
Open up a browser and go to Node.js official website. From the Node.js home page click on the DOWNLOAD link tab as shown above.
From the Downloads web page, download the latest LTS version and make sure you’re downloading .msi file. Now either click on the 32-bit or 64-bit installer file, as shown above, this depends upon the processor and the operating system that you’re running on your computer.
If you’re using Chrome and downloading this file gives you an error message, click on the Keep button as shown above to start the download.
Step 2: Install Node.js
Now open up the folder where you downloaded the Node.js .msi file. Double-click to open up the setup wizard as shown above.
When Node.js setup wizard launches up, click on the Next button to proceed to the next step as shown above.
In the End-user License Agreement phase, checkmark the “I accept the terms in the License Agreement” Checkbox as highlighted above. Now click on the Next button as shown above to proceed to the next step.
In the Destination Folder phase, leave the destination as a default as simply click on the Next button to proceed to the next step as shown above.
In the Custom Setup phase, leave the setup as default and simply click on the Next button to start the installation process.
In the Tools for Native Modules phase, Checkmark the “Automatically install the necessary tools” checkbox as shown above. This will download and install the Python and Visual studio build tools after the Node.js installation process is complete. Now simply click the Next button to proceed.
Now start your Node.js installation process by hitting the Install button as shown above. After you click the Install button a user access control message will pop up, simply press YES button to start the installation process.
Now, wait until the Installation process is completed as shown above.
After Node.js has been successfully installed, simply click on the Finish button to close the setup wizard as highlighted above.
Step 3: Install necessary Tools for Node.js
After you close the setup wizard the command terminal will open up asking you to press any key to continue downloading the necessary tools to compile Node.js native modules. After pressing the key, the downloading will start, your PC may reboot during the process of installation.
Step 4: Check Node.js and NPM
Open up the Command Prompt terminal, and type in:
- node –v and hit enter, this will display the version of the Node.js installed on your PC.
- npm –v and hit enter, this will display the version of the npm installed on your PC.
If you see the displayed versions of Node.js and npm, (as shown above), then you have successfully installed the Node.js framework and you’re ready to start coding and developing awesome applications.
Hope this helped you to know how to install Node.js and npm on Windows. Enjoy!