nrm

作者: 最爱喝龙井 | 来源:发表于2019-08-16 16:55 被阅读0次

    nrm是一个镜像地址的管理器,安装上之后,可以很容易的切换下载地址

    全局安装nrm:npm i nrm -g

    查看镜像地址的列表:nrm ls

    C:\Users\Administrator>nrm ls
    
    * npm -------- https://registry.npmjs.org/
      yarn ------- https://registry.yarnpkg.com/
      cnpm ------- http://r.cnpmjs.org/
      taobao ----- https://registry.npm.taobao.org/
      nj --------- https://registry.nodejitsu.com/
      npmMirror -- https://skimdb.npmjs.com/registry/
      edunpm ----- http://registry.enpmjs.org/
    

    切换镜像地址:nrm use npm

    注意:这里的nrm并不是一个命令行的工具,装包的时候还是要使用npm来安装,只不过可以通过nrm来修改下载的地址。

    相关文章

      网友评论

          本文标题:nrm

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