Use "yarn global add" (#5379)

Use "yarn global add" instead of "yarn install -g". Because "yarn install" is used to install all dependencies for a project [1]. "yarn global"  install packages globally on your operating system [2].

[1] https://yarnpkg.com/en/docs/cli/install
[2] https://yarnpkg.com/en/docs/cli/global
This commit is contained in:
BjoernSchilberg 2017-03-08 22:36:58 +01:00 committed by Vladimir Agafonkin
parent d3c7ed13ad
commit 94fff4f101

View File

@ -74,7 +74,7 @@ npm install
``` ```
or, if you prefer [`yarn`](https://yarnpkg.com/) over `npm`: or, if you prefer [`yarn`](https://yarnpkg.com/) over `npm`:
``` ```
yarn install -g jake yarn global add jake
yarn install yarn install
``` ```