Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install due to dependency issues #125

Open
benjivm opened this issue Sep 20, 2024 · 2 comments
Open

Cannot install due to dependency issues #125

benjivm opened this issue Sep 20, 2024 · 2 comments

Comments

@benjivm
Copy link

benjivm commented Sep 20, 2024

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
Copy link

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

@UnnitMetaliya
Copy link

@digital-brew what about dockerized containers? I don't think that's the solution. Right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants