初始化一个新项目
$ yarn init
添加依赖包
$ yarn add [package]
$ yarn add [package]@[version]
$ yarn add [package]@[tag]
更新依赖包
$ yarn upgrade [package]
$ yarn upgrade [package]@[version]
$ yarn upgrade [package]@[tag]
移除依赖包
$ yarn remove [package]
安装项目的所有依赖包
$ yarn
or
$ yarn install
Yarn Usage