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

npm 换源

时间:2018-09-15 12:17:35      阅读:214      评论:0      收藏:0      [点我收藏+]

标签:联系   著作权   链接   exp   lin   ref   tar   tps   --   

一、使用淘宝镜像
1.临时使用
npm --registry https://registry.npm.taobao.org install express

2.持久使用
npm config set registry https://registry.npm.taobao.org

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

二、使用官方镜像
npm config set registry https://registry.npmjs.org/

三、查看npm源地址
npm config get registry



作者:nickfox
链接:https://www.jianshu.com/p/f311a3a155ff
來源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。

npm 换源

标签:联系   著作权   链接   exp   lin   ref   tar   tps   --   

原文地址:https://www.cnblogs.com/adouwt/p/9650427.html

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