Download node.js windows installer from the Node.js website https://nodejs.org/en/download/
Download 64-bit (or 32-bit) version Windows Installer (.msi) file based on the architecture of your processor.
Go to the downloaded location as below.
Double-click the installation folder and follow the Node.js setup wizard by clicking Next button.
You can do the Custom Setup during installation from the below window. Click Next.
After clicking Next and Install buttons, the installation will start as below.
After the completion of the installation, verify if the installation was successful. Open command prompt and type the commands as in the screenshot.
The commands show the version of the installed softwares – node.js and npm (node modules).