nvm 下载地址
文件选择
安装完后,安装 Node\ 使用
// 安装 nvm install 版本号
nvm install 18.10.1
// 使用 nvm use 版本号
nvm use 18.10.1
nvm 其他命令
nvm 设置安装镜像源
在settings.txt中加入两行代码,采用淘宝镜像(注意path路径是否正确
node_mirror: https://npm.taobao.org/mirrors/node/
npm_mirror: https://npm.taobao.org/mirrors/npm/
node 缓存设置
npm config set prefix "D:/npm_global"
npm config set cache "D:/npm_cache"