Home > Net >  Composer update probleme on cpanel for symfony
Composer update probleme on cpanel for symfony

Time:09-07

I have a problem for a symfony app when I try to install dependencies with composer :

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

  Problem 1
    - symfony/framework-bundle[v6.0.0, ..., v6.0.12] require composer-runtime-api >=2.1 -> found composer-runtime-api[2.0.0] but it does not match the constraint.
    - Root composer.json requires symfony/framework-bundle 6.0.* -> satisfiable by symfony/framework-bundle[v6.0.0, ..., v6.0.12].

Composer version I have on cpanel : 2.0.8 I didn't upgrade composer to the last version.

CodePudding user response:

symfony/framework-bundle[v6.0.0, ..., v6.0.12] require composer-runtime-api >=2.1 -> found composer-runtime-api[2.0.0] but it does not match the constraint.

That line basically tells you that Symfony in v6 requires any Composer version equal or above 2.1, and you are currently using Composer v2.0. Please update Composer itself, for example by using composer self-update

  • Related