先安装,nvm,即是Node Version Manager(Node版本管理器)


curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
 或者使用  wget

wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
之后需要激活nvm:

$ source ~/.nvm/nvm.sh
激活完成后,安装node

nvm install node
安装完成后,切换到该版本


nvm use node

原文:https://blog.csdn.net/gaomengwang/article/details/77540429

相关文章:

  • 2021-12-20
  • 2021-12-11
  • 2021-04-28
  • 2021-12-23
  • 2021-06-28
猜你喜欢
  • 2021-08-16
  • 2022-12-23
  • 2021-10-18
  • 2021-12-28
  • 2022-01-10
  • 2021-09-28
  • 2022-12-23
相关资源
相似解决方案