Open dalin- opened 4 years ago
Here is an example below. If you put this in your project's composer.json it will set the cache directory (cache-dir) to where you want:
"config": {
"preferred-install": "dist",
"sort-packages": true,
"cache-dir": "./.cache",
"platform": {
"php": "8.1.0"
}
}
I'm getting errors like
Looks like the cache directory can be manually set to a place that's actually writable https://getcomposer.org/doc/03-cli.md#composer-cache-dir