下载
下载链接https://github.com/coreybutler/nvm-windows/releases
使用命令
当前我只使用了这些命令
nvm -v //查看当前版本
nvm install node版本号 //下载指定版本node
nvm list //当前下载node版本列表
nvm use node版本号 //使用指定版本node
过程中出现的报错信息
C:\Users\XY>nvm install 16
Downloading node.js version 16.19.1 (64-bit)...
Error while creating D:\Program Files\nvm\v16.19.1\node.zip - open D:\Program Files\nvm\v16.19.1\node.zip: The system cannot find the path specified.
Could not download node.js v16.19.1 64-bit executable.
这边报错的原因是没有权限 因为我是直接打开的cmd
解决方法:
需要使用管理员身份打开,就可以正常使用下载命令啦