苹果m1芯片安装nvm管理node.js版本

brew安装nvm后配置环境

# 终端输入
vim ~/.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
# 终端输入
source ~/.zshrc
nvm install 16.17.0

你可能感兴趣的:(前端node.js)