For a plugin for Sublime Text I was required to install a composer package globally.
In order to do this I had to run the following command:
composer glo
It gets your composer home directory and i use composer version 2.0.8 on Win 10
composer config --list --global | grep 'home'
[home] C:/Users/youruser/AppData/Roaming/Composer
On Windows, mine was /Users/taylor/AppData/Roaming/Composer/bin
For composer v2:
composer global config --list
Check the output and find [vendor-dir]
parameter. Or use grep:
composer global config --list | grep "vendor-dir"
You can query Composer to find where it has set the user $COMPOSER_HOME
directory.
composer config --list --global
The '[home]' line refers to the default value of $COMPOSER_HOME
.
Just as a final confirmation - the 'yourname' part in the configuration, would very likely need to be updated with your own Windows username - composer config
will say where it put the files.
You may find in ~/.config/composer/vendor/bin
Run the command
composer config --list --global | grep -w home
You can find the find the [home]
with composer path, similar to this one.
[home] /home/example_username/.config/composer