

To find the default Node version set for the current user, type: nvm run default -version The selected version will be the currently active version for the current shell only. You can also select a different version for the current session. With this command, you can find the available node.js version for the installation. You can use the following command to list installed versions of node for the current user.

You can also use lts/dubnium, lts/carbon etc. nvm install node # install latest stable version nvm install lts/* # install latest lts version It also provided alias for the latest stable node version, LTS version and other previous LTS version. Now you can install any node version by typing: nvm install 12.19.1 You can find all the available Node version for installation by running command: nvm ls-remoteĪbove command will show you a list of available node versions. Nvm allows to install multiple node versions on your system for the logged in user. You need to load this environment to set required configuration by running the following command: source ~/.bashrc Installing Node.js using NVM Then execute the installer script as following command: curl | bashīasically, NVM keeps all files under the $HOME/.nvm directory. Make sure your system have curl installed. Open a terminal on your system or connect a remote system using SSH. NVM provides a simple bash script for the installation on Linux systems. This tutorial will explain you to install NVM on CentOS/RHEL 7/6 systems and manage multiple Node.js versions. But NVM helped to easily manage multiple active Node.js versions on a single system. Managing the multiple Node.js versions for differnt-2 projects are a pain for the developers. Sometimes you required to deploy multiple node application with different-2 versions. NVM stands for Node Version Manager is a command-line utility for managing Node versions.
