Doc tweaks, fixes composer/getcomposer.org#178
parent
dc759a69b5
commit
738a89ffe1
|
@ -943,6 +943,8 @@ The `COMPOSER_HOME` var allows you to change the Composer home directory. This
|
||||||
is a hidden, global (per-user on the machine) directory that is shared between
|
is a hidden, global (per-user on the machine) directory that is shared between
|
||||||
all projects.
|
all projects.
|
||||||
|
|
||||||
|
Use `composer config --global home` to see the location of the home directory.
|
||||||
|
|
||||||
By default, it points to `C:\Users\<user>\AppData\Roaming\Composer` on Windows
|
By default, it points to `C:\Users\<user>\AppData\Roaming\Composer` on Windows
|
||||||
and `/Users/<user>/.composer` on macOS. On \*nix systems that follow the [XDG Base
|
and `/Users/<user>/.composer` on macOS. On \*nix systems that follow the [XDG Base
|
||||||
Directory Specifications](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html),
|
Directory Specifications](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html),
|
||||||
|
|
|
@ -80,10 +80,9 @@ To fix this you need to open the file in an editor and fix the error. To find th
|
||||||
your global `auth.json`, execute:
|
your global `auth.json`, execute:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
composer config --global --list
|
composer config --global home
|
||||||
```
|
```
|
||||||
|
|
||||||
And look for the `[home]` section. (It is by default `~/.composer` or `%APPDATA%/Composer` on Windows)
|
|
||||||
The folder will contain your global `auth.json` if it exists.
|
The folder will contain your global `auth.json` if it exists.
|
||||||
|
|
||||||
You can open this file in your favorite editor and fix the error.
|
You can open this file in your favorite editor and fix the error.
|
||||||
|
|
Loading…
Reference in New Issue