美文网首页
nvm-window管理多个版本node

nvm-window管理多个版本node

作者: DUJUNHUI | 来源:发表于2021-11-12 17:00 被阅读0次

    安装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
    

    相关文章

      网友评论

          本文标题:nvm-window管理多个版本node

          本文链接:https://www.haomeiwen.com/subject/qvjozltx.html