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
For composer v2:
composer global config --list
Check the output and find [vendor-dir] parameter. Or use grep:
[vendor-dir]
composer global config --list | grep "vendor-dir"