码迷,mamicode.com
首页 > 其他好文 > 详细

npm 镜像使用

时间:2020-06-24 23:25:55      阅读:69      评论:0      收藏:0      [点我收藏+]

标签:镜像   str   常用   tps   ble   gis   access   安装源   under   

1、npm安装包时候,报错这个http://..........不能够访问 not accessible 

     或者安装起来很慢,这个是因为要访问国外的网站。 

     npmde 的默认安装源是:http://registry.npmjs.org

 * 解决办法   

   设置其他的源: npm config set registry https://registry.npm.taobao.org

                              npm config get registry

   npm --registry https://registry.npm.taobao.org info underscore

   编辑 .npmrc增加

   registry = https://registry.npm.taobao.org

 

    使用cnpm:npm install -g cnpm --registry=https://registry.......

                      cnpm install ........

几个常用国内镜像:...

    

npm 镜像使用

标签:镜像   str   常用   tps   ble   gis   access   安装源   under   

原文地址:https://www.cnblogs.com/javagatez/p/13190581.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!