美文网首页
NPM,淘宝镜像相关使用

NPM,淘宝镜像相关使用

作者: Komolei | 来源:发表于2017-07-13 20:31 被阅读0次

    无法使用梯子。只能使用淘宝镜像

    npm config set registry https:"//registry.taobao.org"
    

    用完要恢复

    npm config set registry https:"//registry.npmjs.org"
    

    当然具体也可以使用

    npm config //查看相关命令
    npm config edit //win会弹出个text。然后查看registry,自己修改吧modified
    

    npm delete registry
    npm distable url //没有试过。

    还是安利一个 nrm 🙌npm 推荐的

    使用usage

      npm install -g nrm 
      nrm ls //查看。
      nrm use cnpm //这样就使用了  cnpm --- http://r.cnpmjs.org/
    

    测试
    nrm test 还是taobao快囧
    具体

    相关文章

      网友评论

          本文标题:NPM,淘宝镜像相关使用

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