Skip to content

Commit

Permalink
Document that yarn global bin needs to be added to $PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
fahrradflucht committed Oct 12, 2016
1 parent 077ed9a commit 714bf0c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion en/docs/cli/global.md
Expand Up @@ -8,7 +8,9 @@ layout: guide

##### `yarn global` <a class="toc" id="toc-yarn-global" href="#toc-yarn-global"></a>

`yarn global` is a prefix used for a number of commands like `add`, `bin`, `ls` and `remove`. They behave identically to their normal versions except that they use a global directory to store packages. The `global` command makes binaries available to use on your operating system.
`yarn global` is a prefix used for a number of commands like `add`, `bin`, `ls` and `remove`. They behave identically to their normal versions except that they use a global directory to store packages.

To make the binaries globally available on your operating system you have to add the path returned by `yarn global bin` to your operation systems `$PATH` variable. Note that the path will change on every node version upgrade.

This is useful for developer tooling that is not part of any individual project but instead is used for local commands. One such example is [create-react-app](https://github.com/facebookincubator/create-react-app) which can be installed globally like this:

Expand Down

0 comments on commit 714bf0c

Please sign in to comment.