适用于windows的node.js版本管理工具
github/下载地址:https://github.com/coreybutler/nvm-windows
进入realease页面,
#当前已经安装的版本和正在使用的版本
nvm list
#output:
* 22.16.0 (Currently using 64-bit executable)
20.16.0
nvm install lts #安装最新的LTS(长期稳定版本)
nvm install 22.16.0 #安装指定版本号
nvm uninstall 22.16.0 #卸载指定版本号
nvm reinstall 22.16.0 #重新安装指定版本号(出现损坏时)
nvm use 22.16.0 #切换到指定版本
nvm proxy 127.0.0.1:4780 #设置下载和安装node.js的网络代理
nvm subscribe lts #lts有新版本时会收到系统通知
nvm unsubscribe lts #取消通知