Installing Node.js using NVM
curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh -o install_nvm.sh2. Run the script with bash
bashbash install_nvm.sh3. Restart your terminal
source ~/.profile4. Check the versions of Node.js that are available
Node.js that are available$ nvm ls-remote
...
v12.0.0
v12.1.0
v12.2.0
v12.3.0
v12.3.1
v12.4.0
v12.5.0
v12.6.0
v12.7.0
v12.8.0
v12.8.1
v12.9.0
v12.9.1
v12.10.0
v12.11.0
v12.11.1
v12.12.0
v12.13.0 (LTS: Erbium)
v12.13.1 (LTS: Erbium)
v12.14.0 (LTS: Erbium)
v12.14.1 (LTS: Erbium)
v12.15.0 (LTS: Erbium)
v12.16.0 (LTS: Erbium)
v12.16.1 (LTS: Erbium)
v12.16.2 (LTS: Erbium)
v12.16.3 (Latest LTS: Erbium)
...
5. Install
6. See the version currently being used by the shell
7. If you have multiple Node.js versions, you can see what is installed
8. Switch Node.js versions
9. Set the default version of node when starting a new shell
Uninstall Node.js
Node.jsLast updated