Table of Contents
Installing NVM:
brew update
brew install nvm
mkdir ~/.nvm
echo "export NVM_DIR=~/.nvm\nsource \$(brew --prefix nvm)/nvm.sh" >> .zshrc
source ~/.zshrc
you can use nvm -v to show the version of nvm
Install selected version of NodeJS
nvm install <enter_your_prefered_nodejs_version>
You can check all available version of NodeJS to install
nvm list-remote
Install LTS version of NodeJS
nvm install --lts
Switch between NodeJS Version
To check witch version you have on your system you can use nvm ls
nvm ls
nvm use <nodejs_version>
Uninstall a Specific version of NodeJS
nvm uninstall <nodejs_version>