How to install Node Version Manager (NVM) for Windows 10?

Go to the nvm-windows Git Repository

Using your browser navigate to the Git repository for nvm-windows located https://github.com/coreybutler/nvm-windows/releases.
Click on the ‘nvm-setup.zip’ link from the ‘assets’ table.
Locate the Zip File & Extract.

Install NVM:

Double-Click on the executable file to launch the installer.
Choose ‘I accept the agreement’ option.
Select destination to install.
Select Symlink for Node.js.
Click on Install & once it completes, click on the ‘Finish’ button.
Confirm that the ‘NVM’ successfully installed.

Open your command line terminal:

Type the below command to verify if your nvm installation was successful.
$ nvm --version

You can now install ‘npm’ using the following command.
$ nvm install latest
//installs the latest version of npm

$ nvm install <>
//e.g. nvm install 12.6.8 to install a specific npm

Specify the version of npm that you choose to use
$ nvm use 12.21.0

confirm the nodejs and npm versions through the commands below.
//Check Node.js version
$ node --version

//Check npm version
$ npm --version

use the nvm list command to list all the npm and Node.js versions installed.
$ nvm list

Leave a comment

Your email address will not be published. Required fields are marked *