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”的一个响应

发表评论

Fill in your details below or click an icon to log in:

WordPress.com 徽标

您正在使用您的 WordPress.com 账号评论。 注销 /  更改 )

Twitter picture

您正在使用您的 Twitter 账号评论。 注销 /  更改 )

Facebook photo

您正在使用您的 Facebook 账号评论。 注销 /  更改 )

Connecting to %s