I'm trying to install dependencies for an existing Symfony project I'm trying to work on. I looked at this https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file and it says that I should run the update command: php composer.phar update. I did that, but I get the following error:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- phpro/grumphp[v0.12.0, ..., v0.12.1] require composer-plugin-api ~1.0 -> found composer-plugin-api[2.1.0] but it does not match the constraint.
- Root composer.json requires phpro/grumphp ^0.12 -> satisfiable by phpro/grumphp[v0.12.0, v0.12.1].
composer-plugin-apion it! If you don't have it, then install it usingcomposer require composer-plugin-apiand then try again withcomposer update.composer-plugin-apiitself, that is provided by Composer