
In the resulting folder, go to the assets section and click on the nvm-setup.zip file.ĭownload the file and unzip it and right click on the installation file and select ‘Run as Administrator’.

Go to the below link and get the latest version of NVM (Node Version Manager) In the screenshot, it shows NVM is not recognized as an internal or external command. Before installing NVM, validate that there is no previous version of NVM installed. All you need to do is download the MSI package and install it. Installing NVM on windows 10 is straightforward. Each version of node can have their node runtime, tools, and generators. This tool manages all legacy and newer node versions independently and manages the runtime for you on the fly.Īs you seen in the above picture, NVM can maintain multiple versions of nodes in the same environment/machine. This tool when installed on your machine, it will switch to required node version with simple one liner command. The smarter way is to install the NVM (Node version Manager). Switching between node version is bit cumbersome and it is required to uninstall / Install manually to switch back to required node version. In this case if you want to move to latest version of node, you need to again uninstall the legacy and install the latest version. The harder way is to uninstall the current node version (which is 10 in this case) and install the node version 6 and develop the enhancement build and package it. There are 2 ways to achieve it, the harder way and smarter way. You need to implement an enhancement for the solution developed in Node 6. Imagine you have developed an SPFx solution using node 6 and deployed the package in production. When working with SPFx, you may get into situation where the solution needs to be tested in Node LTS version (Long Term Support). Same steps can be performed on windows 11 as well. This article contains installation instructions for windows 10. This way installing or uninstalling a particular node version will not disrupt the packages and runtime.

NVM is the tool, that allows you to download and install multiple node versions and isolates the projects and packages without affecting their functionality. This tool is extended for Windows machines with lot of efforts and contribution from community. This tool is intially can only be used on Mac and Linux machines.

Before starting with Node Version Manager aka NVM, a BIG THANKS to Corey Butler and Team, who made this cool product possible for windows users.
