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

Can't install #22

Open
maxwebro opened this issue Apr 17, 2024 · 0 comments
Open

Can't install #22

maxwebro opened this issue Apr 17, 2024 · 0 comments

Comments

@maxwebro
Copy link

What steps will reproduce the problem?

First:
composer require --dev --prefer-dist yii2-extensions/user

Second:
composer require --dev --prefer-dist yii2-extensions/user -W

Third:
composer require --dev --prefer-dist yii2-extensions/user:dev-main

What is the expected result?

The extension installing successfully.

What do you get instead?

First:

Problem 1
- yii2-extensions/user dev-dependabot/composer/yiisoft/yii2-symfonymailer-tw-4.0 requires yii2-extensions/bootstrap5 dev-main -> found yii2-extensions/bootstrap5[dev-main, 0.1.x-dev (alias of dev-main)] but the package is fixed to 0.1.0 (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.
- yii2-extensions/user[dev-main, 1.0.x-dev] require yiisoft/yii2-symfonymailer ^3.0 -> found yiisoft/yii2-symfonymailer[dev-master, 3.0.0, 3.0.x-dev (alias of dev-master)] but it conflicts with your root composer.json require (^4.0).
- yii2-extensions/user 1.0.x-dev is an alias of yii2-extensions/user dev-main and thus requires it to be installed too.
- Root composer.json requires yii2-extensions/user * -> satisfiable by yii2-extensions/user[dev-dependabot/composer/yiisoft/yii2-symfonymailer-tw-4.0, dev-main, 1.0.x-dev (alias of dev-main)].

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 yii2-extensions/user:*" to figure out if any version is installable, or "composer require yii2-extensions/user:^2.1" if you know which you need.

Second:

Problem 1
- yii2-extensions/user 1.0.x-dev is an alias of yii2-extensions/user dev-main and thus requires it to be installed too.
- yii2-extensions/user[dev-main, 1.0.x-dev] require yiisoft/yii2-symfonymailer ^3.0 -> found yiisoft/yii2-symfonymailer[dev-master, 3.0.0, 3.0.x-dev (alias of dev-master)] but it conflicts with your root composer.json require (^4.0).
- You can only install one version of a package, so only one of these can be installed: php-forge/html-interop[dev-main, 0.1.0].
- php-forge/html-helper[0.1.0, ..., 0.1.1] require php-forge/html-interop dev-main -> satisfiable by php-forge/html-interop[dev-main].
- php-forge/html dev-main requires php-forge/html-interop ^0.1 -> satisfiable by php-forge/html-interop[0.1.0].
- php-forge/html dev-main requires php-forge/html-helper ^0.1 -> satisfiable by php-forge/html-helper[0.1.0, 0.1.1].
- yii2-extensions/user dev-dependabot/composer/yiisoft/yii2-symfonymailer-tw-4.0 requires php-forge/html dev-main -> satisfiable by php-forge/html[dev-main].
- Root composer.json requires yii2-extensions/user * -> satisfiable by yii2-extensions/user[dev-dependabot/composer/yiisoft/yii2-symfonymailer-tw-4.0, dev-main, 1.0.x-dev (alias of dev-main)].

You can also try re-running composer require with an explicit version constraint, e.g. "composer require yii2-extensions/user:*" to figure out if any version is installable, or "composer require yii2-extensions/user:^2.1" if you know which you need.

Third:

Problem 1
- Root composer.json requires yii2-extensions/user dev-main -> satisfiable by yii2-extensions/user[dev-main].
- yii2-extensions/user dev-main requires yiisoft/yii2-symfonymailer ^3.0 -> found yiisoft/yii2-symfonymailer[dev-master, 3.0.0, 3.0.x-dev (alias of dev-master)] but it conflicts with your root composer.json require (^4.0).

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Additional info

I have already installed the debug extension which sets the symfonymailer to ^4.0, but after removed and downgraded the symfonymailer to ^3.0 and rerun the command:
composer require --dev --prefer-dist yii2-extensions/user:dev-main

I got this:

Problem 1
- You can only install one version of a package, so only one of these can be installed: php-forge/html-interop[dev-main, 0.1.0].
- php-forge/html-helper[0.1.0, ..., 0.1.1] require php-forge/html-interop dev-main -> satisfiable by php-forge/html-interop[dev-main].
- php-forge/html dev-main requires php-forge/html-interop ^0.1 -> satisfiable by php-forge/html-interop[0.1.0].
- php-forge/html dev-main requires php-forge/html-helper ^0.1 -> satisfiable by php-forge/html-helper[0.1.0, 0.1.1].
- yii2-extensions/user dev-main requires php-forge/html dev-main -> satisfiable by php-forge/html[dev-main].
- Root composer.json requires yii2-extensions/user dev-main -> satisfiable by yii2-extensions/user[dev-main].

Q A
Version dev-main
PHP version 8.3
Operating system macOS Sonoma
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

1 participant