yarn using npm.taobao.org

最近由 facebook 出品了全新的 javascript 包管理器 yarn,经过尝试其在保持 npm3 兼容性的基础上,大大提高了安装速度,以及增加了不少新功能,具体详细查看: https://yarnpkg.com.

但在国内由于源的问题,速度仍然大大受到限制,这里提供基于 npm.taobao.org 源的 yarn 包:         tyarn.

安装

npm install yarn tyarn -g --registry=<a href="https://registry.npm.taobao.org">https://registry.npm.taobao.org</a>

使用

用处最大的就是安装,用法和官方 yarn 一致,只不过命令改为 tyarn, 例如

tyarn add antd

体验下飞一般的速度吧 🙂

发布继续使用 npm 即可。

yarn using npm.taobao.org》有4条评论

yiminghe 发表评论 取消回复