简体   繁体   中英

How to install GrumPHP with Composer 2?

I updated my Composer to use version 2, but since then my Composer install doesn't work anymore.

GrumPHP 作曲家 2

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.

How could I fix it?

In order to keep it running, you will need to switch your GrumPHP package to the version without dependencies.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM