当前位置:   article > 正文

Ubuntu npm 切换淘宝镜像源_unbuntu npm taobao

unbuntu npm taobao

npm 切换到淘宝源

  1. 默认的npm下载地址:http://www.npmjs.org/
  2. 淘宝npm镜像的地址:https://npm.taobao.org/

临时使用淘宝源:

    $ npm --registry https://registry.npm.taobao.org install node-red-contrib-composer@latest

全局配置切换到淘宝源:

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

全局配置切换到官方源:

    $ npm config set registry http://www.npmjs.org

检测是否切换到了淘宝源:

    $ npm info underscore

到此 Npm 切换淘宝镜像源介绍完成。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Guff_9hys/article/detail/831074
推荐阅读
相关标签
  

闽ICP备14008679号