likes
comments
collection
share

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

作者站长头像
站长
· 阅读数 27

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
转载自:https://segmentfault.com/a/1190000042456045
评论
请登录