How to install Node using NVM(Node Version Manager ) in Ubuntu

NVM works like magic. It not only allows you to main different independent versions of Node.js but at the same time helps you to maintain them. Moreover, it allows allows to maintain their associated Node packages parallely.

Here are the steps to install Node using NVM in ubnutu system

Step: 1

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh

Step 2

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

Step 3

source ~/.bashrc

The command in step 4 allows you to see the list of node version you can install

Step 4

nvm list-remote

Step 5

nvm install v14.10.0

you can type in any version after install from the list in step 4 and it will install the respective to your system.

In order to see the previously installed node version use the command below

nvm list

Leave a Comment

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