Node版本管理工具 - Node Version Manager

原创
2022/10/28 09:58
阅读数 1.1K

node版本管理工具。可以在多个node版本中进行切换,降低了升级node时的成本。

https://www.oschina.net/p/nvm

https://gitee.com/mirrors/nvm

https://github.com/nvm-sh/nvm

https://github.com/nvm-sh/nvm/blob/master/README.md

https://gitee.com/mindblowing/nvm

https://gitee.com/mindblowing/nvm/blob/master/README.md

安装nvm时,以那个用户使用那个用户安装为基准

$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash

$ nvm ls-remote

$ nvm use v8.16.2

$ nvm use 16
Now using node v16.9.1 (npm v7.21.1)
$ node -v
v16.9.1
$ nvm use 14
Now using node v14.18.0 (npm v6.14.15)
$ node -v
v14.18.0
$ nvm install 12
Now using node v12.22.6 (npm v6.14.5)
$ node -v
v12.22.6
展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
0 评论
0 收藏
0
分享
返回顶部
顶部