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

国内npm镜像使用

时间:2017-08-10 18:07:11      阅读:139      评论:0      收藏:0      [点我收藏+]

标签:conf   地址   code   成功   ref   targe   oba   https   http   

淘宝npm镜像

cnpmjs镜像

1.临时使用

npm --registry https://registry.npm.taobao.org install express

2.持久使用

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

// 配置后可通过下面方式来验证是否成功
npm config get registry
// 或
npm info express

3.通过cnpm使用

npm install -g cnpm --registry=https://registry.npm.taobao.org

// 使用
cnpm install express

国内npm镜像使用

标签:conf   地址   code   成功   ref   targe   oba   https   http   

原文地址:http://www.cnblogs.com/avidya/p/7340279.html

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