yarn

install refer : http://www.jackpu.com/yarn-facebook-kai-yuan-de-bao-guan-li-gong-ju/
yarn documention : https://yarnpkg.com/en/
yarn compare npm :https://yarnpkg.com/en/docs/migrating-from-npm:

yarn as new package manager that more quickly more power was  presented by facebook,
you can use yarn like npm , but the yarn use new algorithm , so need you assign more specific package.json avoid something that accident.

you can read yarn documention get more info , here just provide a part of item.

you can install yarn as install refer or yarn document, if mac homebrew not work correct , you can use curl get yarn

curl -o- -L https://yarnpkg.com/install.sh | bash  

if you want migrating from npm , simple, just type yarn in terminal at the root of your project

yarn use compare npm,you can refer to “yarn compare npm”:

这里写图片描述

Note: have a version of yarn , use yarn add packageName couldn’t add package to devdepedence , i have found this issue yesterday , but someone have presented it already in githup:

    Yarn upgrade does not properly update `package.json` for dev dependencies #1458

issue:https://github.com/yarnpkg/yarn/issues/1458

if you have any question , can also go to assign.

thanks for readying .

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值