Here's how to locate the path of Composer's global composer.json
, which defines the system packages installed and managed by Composer.
# Retrieve composer's data directory
composer config data-dir
# /Users/nono/.composer
# Print composer.json's contents
cat $(composer config data-dir)/composer.json
# {
# "require": {
# "laravel/valet": "^3.0.0",
# "laravel/installer": "^4.1"
# }
# }