How to install/ upgrade Node in windows
Here we are going to learn how install / upgrade the node in different ways. We can install/upgrade the node by the following two ways
- Installing the node from executable file
- Installing from the NVS (Node Version Switcher)
Method 1: Download the executable file and install
1. Go to the node download page and download
2. Run the executable file, it will install/upgrade the node
Method 2: Installing/upgrading by using NVS(Node version switcher)
In this method, we can switch over to the previous/ latest node version. This is an advantages of NVS. Before begin, Uninstall the node if you have installed already and follow the below method to install the node through NVS.
- Open the command prompt as administrator
2. Install NVS via chocolatery by the following command
choco install nvs
Or download NVS .msi file directly from here and open it to install the NVS
3. Install the node LTS by the following command
nvs add node/lts
4. Use the latest version of a node by the following command
nvs use node/<version>
For example
nvs use node/16.13.0/x64
5. Add it to PATH permanently, use NVS link:
nvs link <version>
For example
nvs link node/16.13.0/x64
You can verify the Node installed/upgraded by the following command. Before that close the existing command prompt and Re-run
node -v