无法在 Drupal 8.9.6 上使用 composer 2.0 install/update 模块

Can't install/update modules on Drupal 8.9.6 with composer 2.0

我正在尝试使用 composer 2.0 在 Drupal 8.9.6 上安装模块,但出现下一个错误:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - cweagans/composer-patches 1.6.7 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - drupal/varbase_heroslider_media 7.13.0 requires cweagans/composer-patches ~1.0 -> satisfiable by cweagans/composer-patches[1.6.7].
    - drupal/varbase_heroslider_media is locked to version 7.13.0 and an update of this package was not requested.

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.

然后,我尝试将 cweagans/composer-patches 更新到 1.7,因为这个问题已解决 here。但是我收到下一个错误:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - drupal/drupal-library-installer-plugin 0.3 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - drupal/varbase_heroslider_media 7.13.0 requires drupal/drupal-library-installer-plugin ^0.3 -> satisfiable by drupal/drupal-library-installer-plugin[0.3].
    - drupal/varbase_heroslider_media is locked to version 7.13.0 and an update of this package was not requested.

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.

好的,那么,我尝试更新 drupal/drupal-library-installer-plugin 我又遇到了第一个错误。这是一个圆圈,我无法更新 Drupal。

我该怎么做?

drupal/drupal-library-installer-plugin 五年多(!)以来没有看到任何更新。要么搜索替代方案,要么将 Composer 降级到 v1