安装说明说明:
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
brew install nvm
mkdir ~/.nvm
vi ~/.zshrc
export NVM_DIR="$HOME/.nvm"
[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && . "/opt/homebrew/opt/nvm/nvm.sh" # This loads nvm
[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && . "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
- :wq保存退出,使用 source 命令使配置生效
source ~/.zshrc
echo $NVM_DIR
/Users/your-username/.nvm //打印出这个就说明成功了
nvm install 14.6.0
nvm use 14.6.0
nvm list
nvm uninstall 14.6.0
网友评论