Go to https://github.com/coreybutler/nvm-windows and download nvm-setup.exe.
Install NVM (Node Version Manager) using all default settings.
Run the following commands in command prompt or powershell:
nvm install latest
nvm use latest
Confirm the installation
npm -v