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

安装使用yarn,使用国内镜像加速npm和yarn

时间:2018-01-28 19:11:27      阅读:1303      评论:0      收藏:0      [点我收藏+]

标签:div   conf   span   tps   pos   blog   cnp   cnpm   pkg   

安装yarn

https://yarnpkg.com/lang/zh-hans/docs/install/

使用国内镜像加速npm和yarn

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

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

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

安装使用yarn,使用国内镜像加速npm和yarn

标签:div   conf   span   tps   pos   blog   cnp   cnpm   pkg   

原文地址:https://www.cnblogs.com/cxscode/p/8371797.html

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