
To set a default nodejs version for the system, execute the following command, To get the list of all the nodejs versions installed on our system, we can use the following command, We will then install another version also,ģ- List all installed NodeJs versions on the system To install a nodejs version, we can copy the version number that we got from the above-mentioned command & to install it use, We will then get list of all the available versions with complete version numbers. To get the list of all available versions that can be installed our system, we will use the following command, Once we have nvm installed on our system, we can check the following commands to manage the installed nodejs versions. Once the script finishes, we can either close terminal & open a new session or we can source the ‘~/.bash_profile’ as some new paths for NVM would be added. This command will not only download the script but will execute it as well. So let’s discuss the installation procedure for the same.įirst, we need to download the latest install script for NVM, use the following command to download the latest script from Github, This will install NVM on Ubuntu as well as CentOS/RHEL/Debian systems as well. To install NVM on the Ubuntu system, we can use an install script maintained on GitHub. Recommended Read: Simple way to install ADB & FastBoot on UbuntuĪlso Read: Install SNAP on Ubuntu & CentOS/RHELĬurrently, it supports Linux & MAC operating systems & doesn’t support Windows but there are some 3rd party tools for Windows that can be used for the same purpose. Basically, it is a command-line utility that allows us to switch between installed multiple nodejs versions.

NVM stands for Node Version Manager is used for managing multiple versions of nodejs on a single system by controlling the nodejs versions installed on the system, also it can be used to install nodejs on the system.


What if we want to use another nodejs version, then what should we do ? We have discussed how to install NodeJS on Ubuntu systems in our earlier tutorial, but that way we can only use a single installed version of nodejs on our system.
