失败的作曲家需要Symfony/Mailer
我正在尝试运行Composer需要Symfony/Mailer在Symfony 4项目中使用它,但是它会返回一个错误:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- symfony/mailer[v5.4.0, ..., v5.4.8] require symfony/mime ^5.2.6|^6.0 -> found symfony/mime[v5.2.6, ..., v5.4.9, v6.0.0, ..., v6.1.1] but the package is fixed to v4.4.42 (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 symfony/mailer ^5.4 -> satisfiable by symfony/mailer[v5.4.0, ..., v5.4.8].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
当我运行Composer -vvv -no -Plugins时,需要-NO -Scripts -no -scripts -w symfony/mailer,我得到了这样:
Problem 1
- symfony/mailer[v5.4.0, v5.4.2, v5.4.3, v5.4.5, v5.4.7, v5.4.8] require
symfony/mime ^5.2.6|^6.0 -> satisfiable by symfony/mime[v5.2.6,
v5.2.7, v5.2.9, v5.2.10, v5.2.11, v5.2.12, v5.3.0, v5.3.2, v5.3.4,
v5.3.7, v5.3.8, v5.3.11
, v5.3.13, v5.3.14, v5.4.0, v5.4.2, v5.4.3, v5.4.7, v5.4.8, v5.4.9,
v6.0.0, v6.0.1, v6.0.2, v6.0.3, v6.0.7, v6.0.8, v6.0.9, v6.1.0,
v6.1.1].
- __root__ dev-develop conflicts with symfony/mime v5.3.7.
- __root__ dev-develop conflicts with symfony/mime v5.3.8.
- __root__ dev-develop conflicts with symfony/mime v5.3.2.
- __root__ dev-develop conflicts with symfony/mime v5.3.4.
- __root__ dev-develop conflicts with symfony/mime v5.3.0.
- __root__ dev-develop conflicts with symfony/mime v5.2.12.
- __root__ dev-develop conflicts with symfony/mime v5.2.11.
- __root__ dev-develop conflicts with symfony/mime v5.2.10.
- __root__ dev-develop conflicts with symfony/mime v5.4.9.
- __root__ dev-develop conflicts with symfony/mime v5.4.7.
- __root__ dev-develop conflicts with symfony/mime v5.4.8.
- __root__ dev-develop conflicts with symfony/mime v5.4.2.
- __root__ dev-develop conflicts with symfony/mime v5.4.3.
- __root__ dev-develop conflicts with symfony/mime v5.4.0.
- __root__ dev-develop conflicts with symfony/mime v5.2.7.
- __root__ dev-develop conflicts with symfony/mime v5.2.9.
- __root__ dev-develop conflicts with symfony/mime v5.2.6.
- __root__ dev-develop conflicts with symfony/mime v5.3.11.
- __root__ dev-develop conflicts with symfony/mime v5.3.13.
- __root__ dev-develop conflicts with symfony/mime v5.3.14.
- symfony/mime[v6.0.0, v6.0.1, v6.0.2, v6.0.3, v6.0.7, v6.0.8, v6.0.9] require php >=8.0.2 -> your php version (7.3.21) does not satisfy that requirement.
- symfony/mime[v6.1.0, v6.1.1] require php >=8.1 -> your php version (7.3.21) does not satisfy that requirement.
- __root__ is present at version dev-develop and cannot be modified by Composer
- Root composer.json requires symfony/mailer ^5.4 -> satisfiable by symfony/mailer[v5.4.0, v5.4.2, v5.4.3, v5.4.5, v5.4.7, v5.4.8].
有什么想法解决的?
I'm trying to run composer require symfony/mailer to use it in Symfony 4 project, but it returns an error :
Your requirements could not be resolved to an installable set of packages.
Problem 1
- symfony/mailer[v5.4.0, ..., v5.4.8] require symfony/mime ^5.2.6|^6.0 -> found symfony/mime[v5.2.6, ..., v5.4.9, v6.0.0, ..., v6.1.1] but the package is fixed to v4.4.42 (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 symfony/mailer ^5.4 -> satisfiable by symfony/mailer[v5.4.0, ..., v5.4.8].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
And when I run composer -vvv --no-plugins require --no-scripts -W symfony/mailer I got this :
Problem 1
- symfony/mailer[v5.4.0, v5.4.2, v5.4.3, v5.4.5, v5.4.7, v5.4.8] require
symfony/mime ^5.2.6|^6.0 -> satisfiable by symfony/mime[v5.2.6,
v5.2.7, v5.2.9, v5.2.10, v5.2.11, v5.2.12, v5.3.0, v5.3.2, v5.3.4,
v5.3.7, v5.3.8, v5.3.11
, v5.3.13, v5.3.14, v5.4.0, v5.4.2, v5.4.3, v5.4.7, v5.4.8, v5.4.9,
v6.0.0, v6.0.1, v6.0.2, v6.0.3, v6.0.7, v6.0.8, v6.0.9, v6.1.0,
v6.1.1].
- __root__ dev-develop conflicts with symfony/mime v5.3.7.
- __root__ dev-develop conflicts with symfony/mime v5.3.8.
- __root__ dev-develop conflicts with symfony/mime v5.3.2.
- __root__ dev-develop conflicts with symfony/mime v5.3.4.
- __root__ dev-develop conflicts with symfony/mime v5.3.0.
- __root__ dev-develop conflicts with symfony/mime v5.2.12.
- __root__ dev-develop conflicts with symfony/mime v5.2.11.
- __root__ dev-develop conflicts with symfony/mime v5.2.10.
- __root__ dev-develop conflicts with symfony/mime v5.4.9.
- __root__ dev-develop conflicts with symfony/mime v5.4.7.
- __root__ dev-develop conflicts with symfony/mime v5.4.8.
- __root__ dev-develop conflicts with symfony/mime v5.4.2.
- __root__ dev-develop conflicts with symfony/mime v5.4.3.
- __root__ dev-develop conflicts with symfony/mime v5.4.0.
- __root__ dev-develop conflicts with symfony/mime v5.2.7.
- __root__ dev-develop conflicts with symfony/mime v5.2.9.
- __root__ dev-develop conflicts with symfony/mime v5.2.6.
- __root__ dev-develop conflicts with symfony/mime v5.3.11.
- __root__ dev-develop conflicts with symfony/mime v5.3.13.
- __root__ dev-develop conflicts with symfony/mime v5.3.14.
- symfony/mime[v6.0.0, v6.0.1, v6.0.2, v6.0.3, v6.0.7, v6.0.8, v6.0.9] require php >=8.0.2 -> your php version (7.3.21) does not satisfy that requirement.
- symfony/mime[v6.1.0, v6.1.1] require php >=8.1 -> your php version (7.3.21) does not satisfy that requirement.
- __root__ is present at version dev-develop and cannot be modified by Composer
- Root composer.json requires symfony/mailer ^5.4 -> satisfiable by symfony/mailer[v5.4.0, v5.4.2, v5.4.3, v5.4.5, v5.4.7, v5.4.8].
Any idea how to solve it ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Symfony/Mailer
在您的项目中固定/锁定在v4.4.42
上。运行使用
的作曲家需要命令 - with-lim-repentencies
(-w
)查看是否解决了您的问题:Symfony/Mailer
is您(当前)锁定文件唯一的问题。symfony/mailer
is fixed/locked tov4.4.42
in your project.Run the Composer require command with
--with-all-dependencies
(-W
) to see if it solves your problem:symfony/mailer
is the only problem you have with your (current) lock file.