From 714bf0c842124acd26beda712ab4dbac98faa5ff Mon Sep 17 00:00:00 2001 From: Fahrradflucht Date: Wed, 12 Oct 2016 12:43:33 +0200 Subject: [PATCH] Document that yarn global bin needs to be added to $PATH See https://github.com/yarnpkg/yarn/issues/648 --- en/docs/cli/global.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/en/docs/cli/global.md b/en/docs/cli/global.md index 85206e080..2ce01f36d 100644 --- a/en/docs/cli/global.md +++ b/en/docs/cli/global.md @@ -8,7 +8,9 @@ layout: guide ##### `yarn global` -`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: