To install Node.js on Windows, we will follow these steps:
We need to determine your processor type, 32-bit or 64-bit. You can do this by executing the following command at the command prompt:
$ wmic os get osarchitecture
The output is as follows:
OSArchiecture64-bit
Download the installer depending on the result of this command.
Once the download is complete, double-click on the .msi file, which will launch the Node installer.
Proceed through each step of the wizard.
When you get to the custom setup screen, you should notice that the installation wizard will install not only the Node.js runtime, but also the npm package manager, and configure a path variable.
So once the installation is done, Node and npm can be executed from any folder via the command line.
Also, if you have any of the Windows package managers installed, then you don't need to manually download the installer. You may install Node.js via the respective package manager: