Step 1. In the search bar, type Command Prompt. Click on the first search result to open it.
Alternatively, press Win+R. In the Run window that pops up, type cmd in the Open text field and click on OK.
Step 2. Check whether Node.js is installed on your machine by writing the following command:
node -v
Press Enter.
If you see any version being returned to you, it means that Node.js is installed on your machine and you can skip steps 3 and 4.
If you see the message "'node' is not recognized as an internal or external command, operable program or batch file.", which means that Node.js is not installed on your computer, close your Command Prompt and proceed to the next step.
Step 3. Go to this link to download Node.js:
On the web page under the LTS (recommended for most users) tab, click on Windows Installer (.msi), either 32-bit or 64-bit, depending upon your processor. This will download the latest version of Node.js for you.
Step 4. Double-click on the downloaded file. Proceed with the default instructions to install Node.js.
In order to verify that it has been correctly installed, open Command Prompt again and go back to step 2. If you see a version of Node.js being returned to you, it means that you have successfully installed its required version on your machine. However, if you still cannot see the version returned to you, you will need to uninstall (if required) and then re-install Node as explained above.
Happy coding!