yarn

来源:互联网 发布:今日头条 大数据 编辑:程序博客网 时间:2024/06/05 20:54

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 .

1 0
原创粉丝点击