How to install and configure NVM on MacOS

preview_player
Показать описание
1. Install Homebrew

2. Install nvm
brew install nvm

3. Add nvm to your shell profile

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
Рекомендации по теме