1- Install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
2- Installing brew to environment
echo "export PATH=/opt/homebrew/bin:$PATH" >> ~/.zshrc
3- Now, close the terminal and open a new terminal.
4- Installing NVM,
brew install nvm
5- Installing latest node version
nvm install node
6-Installing specific node version say 16.15.0
nvm install 16.15.0
7- Listing all the install node versions
node ls
8- Switching to specific node version
node use 16.15.0
Top comments (0)