YrsYarn registry 切换工具

联合创作 · 2023-09-29 15:14

Yrs 是为 Facebook 的 Yarn 的 registry 切换工具。兼容 Node.js 4.0 及以上版本。

安装

yarn global add yrs

OR

 npm install -g yrs

示例:

yrs ls

name       registry                             home                             
npm        https://registry.npmjs.org           https://www.npmjs.org            
cnpm       http://r.cnpmjs.org                  http://cnpmjs.org                
taobao     https://registry.npm.taobao.org      https://npm.taobao.org           
nj         https://registry.nodejitsu.com       https://www.nodejitsu.com        
rednpm     http://registry.mirror.cqupt.edu.cn  http://npm.mirror.cqupt.edu.cn/  
npmMirror  https://skimdb.npmjs.com/registry    https://skimdb.npmjs.com/        
edunpm     http://registry.enpmjs.org           http://www.enpmjs.org
yrs use taobao

yarn config v0.17.6
success Set "registry" to "https://registry.npm.taobao.org".
Done in 0.03s.
浏览 4
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报