franzliedke / studio

A workbench for developing Composer packages.
MIT License
1.14k stars 73 forks source link

Cannot install due to dependency issues #125

Open benjivm opened 2 months ago

benjivm commented 2 months ago

PHP 8.3.11, this command:

composer require --dev franzl/studio

Fails with:

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

  Problem 1
    - franzl/studio[0.9.0, ..., 0.9.5] require composer-plugin-api 1.0.0 -> found composer-plugin-api[2.6.0] but it does not match the constraint.
    - franzl/studio[0.10.0, ..., 0.14.0-beta1] require composer-plugin-api ^1.0 -> found composer-plugin-api[2.6.0] but it does not match the constraint.
    - franzl/studio 0.15.0 requires symfony/console ^2.7 || ^3.0 || ^4.0 || ^5.0 -> found symfony/console[v2.7.0-BETA1, ..., v2.8.52, v3.0.0-BETA1, ..., v3.4.47, v4.0.0-BETA1, ..., v4.4.49, v5.0.0-BETA1, ..., v5.4.43] but the package is fixed to v7.1.4 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - franzl/studio 0.16.0 requires symfony/console ^2.7 || ^3.0 || ^4.0 || ^5.0 || ^6.0 -> found symfony/console[v2.7.0-BETA1, ..., v2.8.52, v3.0.0-BETA1, ..., v3.4.47, v4.0.0-BETA1, ..., v4.4.49, v5.0.0-BETA1, ..., v5.4.43, v6.0.0-BETA1, ..., v6.4.11] but the package is fixed to v7.1.4 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - Root composer.json requires franzl/studio * -> satisfiable by franzl/studio[0.9.0, ..., 0.16.0].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require franzl/studio:*" to figure out if any version is installable, or "composer require franzl/studio:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
digital-brew commented 4 weeks ago

@benjivm try to install with -W flag: composer global require franzl/studio -W