Download the Node.js .msi Installer from the official website ( https://nodejs.org/en/download/ ).
Run the Node.js installer from the downloaded folder.
Welcome to the Node.js Setup Wizard, click Next.
Check the box I Accept the terms in the license Agreement and click Next.
Select the Destination Folder and click Next.
On Custom Setup, select the required features and click Next.
Tools for Native Modules is optional. Check the box Automatically install the necessary tools if needed and click Next.
Click Install to begin the installation.
After Node.js is successfully installed, click Finish.
To verify the Node.js was Properly installed, open CMD and type node -v ,the command prompt will print the version Installed.
Now you may testing Node.js.
Create a .js file with the help of any text editor.
Copy and paste the following into the newly created file and save as it with .js extension.