1. Install Homebrew
/bin/bash -c “$(curl -fsSL “
2. Install nvm
brew install nvm
3. Add nvm to your shell profile
source $(brew –prefix nvm)/nvm.sh
4. List available Node.js versions
nvm ls-remote
5. Install the desired version
nvm install 16
6. Use the installed version
nvm use 16
7. Add to shell profile ~/.bash_profile or ~/.zshrc
vim ~/.bash_profile
vim ~/.zshrc
8. File content
export NVM_DIR=~/.nvm
source $(brew –prefix nvm)/nvm.sh
Note: SantiPineda is the original author of this video, we just embed it, if you have any questions please contact him via Youtube.