Sometimes we would like to write all some code in a local environment, and we will need node.js to install all of our dependencies and run certain scripts. Ex:
npm run build.
This document will provide a guide on how install nvm and node.js for Windows environment.
Download nvm In order to install Node Version Manager tool in Windows environment we need to download a zip file that contains the installation wizard.
Go to your Downloads folder on Windows, and unzip
nvm-setup.zip file and double click on
[[warning]] | ?? Remember not to touch any default configuration. Always keep hitting next!!!
Command Prompt Once it is installed, open Windows Command Prompt. If you have any issues finding the command line, just type CMD in Windows search bar at the bottom-left corner of your desktop.
Install node version 8 or whatever version you want In the command prompt type the command below. If you want to check what are the current node versions, you can go to nodejs.org and check all of them. I would recommend using the recommended for most users.
nvm install 8.15.0
Checking installed node versions Always check your installed node versions. Sometimes our applications do not run because we are using outdated versions. This command will show all the installed node versions you have in Windows.
Changing between different node versions You can always use different node versions and this command line let us jump between all our installed versions.
nvm use 8.15.0
nvm use 10.15.1
Please file an issue here and we will do our best to help you. You can also contribute and pull-request any updates you think should be made to this guide.