Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/flash/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Composer php Can';t使用composer 2.0在Drupal 8.9.6上安装/更新模块_Composer Php_Drupal 8 - Fatal编程技术网

Composer php Can';t使用composer 2.0在Drupal 8.9.6上安装/更新模块

Composer php Can';t使用composer 2.0在Drupal 8.9.6上安装/更新模块,composer-php,drupal-8,Composer Php,Drupal 8,我正在尝试使用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

我正在尝试使用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.
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.
然后,我尝试将cweagans/composer补丁更新为1.7,因为这个问题已经解决。但我得到了下一个错误:

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.
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库安装程序插件,但我再次遇到第一个错误。这是一个圆圈,我无法更新Drupal


我该怎么做呢?

drupal/drupal library安装程序插件自五年多以来(!)没有看到任何更新。搜索其他选项,或者将Composer降级到v1

您正在使用Composer 2,您的一些插件似乎与之不兼容-关于该消息有任何不清楚的地方吗?