To install Node.js in Windows, first, visit the official website of Node.js to download install the installer file. There are two Node.js versions you can download: the LTS version (which has longer support) and the current version.
Once the installer file (in the MSI format) is downloaded, simply double-click it to start the installation process. On the appearing window, you can click the Next button.
On the next step, you will ask to accept the EULA (End-User License Agreement). Simply accept the EULA and click the Next button.
Select the directory location of the Node.js installation and click the Next button. If you want to change the default location, you can simply click the Change button and select your preferred location.
Node.js comes with some features. On the next step, you will be asked to select the features you want to include in the installation. If you have no idea, you can simply click the Next button. The installer will select the necessary features.
Select the tools you want to include in the installation and click the Next button. You can tick the Automatically install the necessary tools option if you want to install the additional tools.
Lastly, you can click the Install button to start installing Node.js on your Windows machine.
Wait a moment until the installation process is done.
Once the installation process is done, you can verify the installation by typing
node -v on Command Prompt. If you see the following output, Node.js has been successfully installed.
npm -v to check to NPM version installed on your Windows machine.