乐趣区

关于前端:苹果m1芯片安装nvm管理nodejs版本

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
退出移动版