【问题标题】:How to install GrumPHP with Composer 2?如何使用 Composer 2 安装 GrumPHP?
【发布时间】:2021-12-13 18:21:06
【问题描述】:

我更新了我的 Composer 以使用版本 2,但从那以后我的 Composer 安装不再工作了。

The "phpro/grumphp" plugin was skipped because it requires a Plugin API version ("~1.0") that does not match your Composer installation ("2.1.0"). You may need to run composer update with the "--no-plugins" option.
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.

  Problem 1
    - phpro/grumphp is locked to version v0.14.3 and an update of this package was not requested.
    - phpro/grumphp v0.14.3 requires composer-plugin-api ~1.0 -> found composer-plugin-api[2.1.0] but it does not match the constraint.

我该如何解决?

【问题讨论】:

  • 该软件包的 v0.14.3 已使用近三年。为什么不将其更新到任何更新的版本?去年发布的任何版本都不应导致该错误

标签: composer-php


【解决方案1】:

为了让它继续运行,你需要将你的 GrumPHP 包切换到没有依赖关系的版本。

composer remove phpro/grumphp
composer require --dev phpro/grumphp-shim

【讨论】:

    猜你喜欢
    • 2015-09-26
    • 1970-01-01
    • 2012-07-24
    • 1970-01-01
    • 2020-03-02
    • 2014-03-09
    • 2018-12-16
    • 2023-03-30
    • 1970-01-01
    相关资源
    最近更新 更多