This could be related to GitHub rate limits being reached. Specify your GitHub API token to avoid it.
For example by the following command:
composer config --global github-oauth.github.com <TOKEN>
or inside your composer.json file:
| <?php | |
| opcache_reset(); |
| #GNU systems | |
| export $(grep -v '^#' .env | xargs -d '\n') | |
| # BSD systems | |
| export $(grep -v '^#' .env | xargs -0) | |
| #link | |
| https://stackoverflow.com/questions/19331497/set-environment-variables-from-file-of-key-value-pairs |