Node Version Manager

Pragadeeswaran Gnanasekaran
1 min readJan 12, 2022

nvm which expands to Node Version Manager is used when you want to have multiple versions of node in same computer, by this way, you can easily switch to different versions and nvm facilitates that.

Node Version Manager

To install nvm use

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash

For more info , please refer official github link

View available versions of node in remote

nvm ls-remote

View Local installed version

nvm ls

Install latest version of node

nvm install node

Install specific version of node

nvm install <version number>

For Example — nvm install v11.14.0 will install 11.14.0

Now the important feature of the nvm is to switch between different versions, we can achieve using following command

Below Command will use latest node

nvm use node

Below Command will use specific version of locally installed version

nvm use <version number>

For example — nvm use v11.14.0 will use 11.14.0

Below Command will fetch you of node which has 14 as major version

nvm ls-remote 14

Below Command will print current node

nvm current

--

--