Update to composer 2
- https://blog.packagist.com/composer-2-0-is-now-available/
- https://chromatichq.com/blog/preventing-conflicts-when-upgrading-composer-2
- https://www.drupal.org/node/3174472
After upgrading to Composer 2, this command helped me keeping Drupal 8 projects compatible -
composer require "composer/installers:^1.9" "cweagans/composer-patches:^1.7" "drupal/core-composer-scaffold:^8.9" "zaporylie/composer-drupal-optimizations:^1.2"
Edited by jurgenhaas