Yarn Usage

初始化一个新项目

1
$ yarn init

添加依赖包

1
2
3
$ yarn add [package]
$ yarn add [package]@[version]
$ yarn add [package]@[tag]

更新依赖包

1
2
3
$ yarn upgrade [package]
$ yarn upgrade [package]@[version]
$ yarn upgrade [package]@[tag]

移除依赖包

1
$ yarn remove [package]

安装项目的所有依赖包

1
$ yarn

or

1
$ yarn install

Yarn Usage