NVM — The Father of Nodes

🚨 Problems

Teepob Harutaipree
Bright Days
2 min readJun 15, 2020

--

While working in multiple projects, there is likely that the project relies on a different node version.

Angular 4 project that use Node version A
Angular 9 project that use Node version B
NVM to the rescue !

Step 1: Install NVM

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

Or

wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash

◉ Step 2: See Available Version

# see all availiable version
nvm ls-remote
# see all V12 releases
nvm ls-remote 12

Step 3: Install Node Version on NVM

#specific version
nvm install v12.18.0
#latest releases
nvm install 12

Step 4: Select installed Node version

#see current installed
nvm ls
See installed node version ( -> indicate the current using version)
#see current used version
nvm ls current

Step 5: Selected Node Version

nvm use v12.18.0

Set Alias / Default Node version

See all alias and default version

nvm alias

Set default to version 12.18.0

nvm alias default v12.18.0# define own alias
# nvm alias myver v5.0.0
default sets to 12.18 which is v12.18.0

Essential Commands

Photo by Fabio Bracht on Unsplash

More Details:

--

--

Teepob Harutaipree
Bright Days

💻 Full stack Developer who likes to exercise 🏊‍♂️and living the healthy lifestyles. 📑 Exploring and incorporating productivity tools in daily routine.