Huodoo前端自用手册(一)新电脑环境配置篇

104 阅读1分钟

系统:win10||win11

1. nvm node环境版本控制

  1. nvm下载链接
  2. 管理员身份运行powershell
  3. nvm node_mirror https://npmmirror.com/mirrors/node/切换淘宝node源
  4. nvm npm_mirror https://npmmirror.com/mirrors/mirror/切换npm源

2. node环境

  1. 管理员身份运行powershell
  2. nvm list available查看可下载的node版本
  3. nvm install xx.xx.xx下载node
  4. nvm use xx.xx.xx使用对应版本的node环境
  5. npm config set registry https://registory.npmmirror.com切换npm下载淘宝镜像源
  6. npm config set cache D:\npm_cach切换npm缓存位置