nvm-window管理多个版本node

2021-11-12  本文已影响0人  DUJUNHUI

安装nvm-window

  1. 下载地址:https://github.com/coreybutler/nvm-windows/releases

    Dingtalk_20211112165542.jpg
  2. 解压nvm-setup.zip后双击安装nvm-setup.exe

  3. 由于npm git官方地址变更,使用默认配置会导致npm下载失败,需修改settings.txt文件
    C:\Users\dujunhui\AppData\Roaming\nvm\settings.txt

npm_mirror: https://github.com/npm/cli/archive/

npm_mirror: https://npm.taobao.org/mirrors/npm/

4.管理员身份运行cmd

nvm list available
nvm ls   // 查看目前已经安装的版本
nvm install 10.5.0  // 安装指定的版本的nodejs
nvm use 10.5.0  // 使用指定版本的nodejs
上一篇 下一篇

猜你喜欢

热点阅读