介绍
Yarn(Yarnpkg), Fast, reliable, and secure dependency management.
安装
1 |
|
1 |
|
备注:貌似~/.yarn/bin
需要加入环境变量PATH中,否则无法全局使用。
基本使用
Starting a new project
1 |
|
Adding a dependency
1 |
|
Adding a dependency to different categories of dependencies
Add to devDependencies
, peerDependencies
, and optionalDependencies
respectively:
1 |
|
Upgrading a dependency
1 |
|
Removing a dependency
1 |
|
Installing all the dependencies of project
1 |
|
or
1 |
|