因为 yarn地址问题导致下载过慢
YRM 换源
一个 yarn源管理器,允许你快速地在yarn源间切换
// 安装 yrm
npm install -g yrm
// 列出可选的源
yrm ls
npm ---- https://registry.npmjs.org/
cnpm --- http://r.cnpmjs.org/
* taobao - https://registry.npm.taobao.org/
nj ----- https://registry.nodejitsu.com/
rednpm - http://registry.mirror.cqupt.edu.cn/
npmMirror https://skimdb.npmjs.com/registry/
edunpm - http://registry.enpmjs.org/
yarn --- https://registry.yarnpkg.com
// 测试每个源响应时间
yrm test
npm ---- 901ms
cnpm --- 1160ms
* taobao - 488ms
nj ----- Fetch Error
rednpm - 335ms
npmMirror 3440ms
edunpm - Fetch Error
yarn --- Fetch Error
// 使用淘宝源
yrm use taobao
评论区