失败的作曲家需要Symfony/Mailer

发布于 2025-02-09 04:25:48 字数 3055 浏览 1 评论 0原文

我正在尝试运行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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

毅然前行 2025-02-16 04:25:48

Symfony/Mailer在您的项目中固定/锁定在v4.4.42上。

运行使用的作曲家需要命令 - with-lim-repentencies-w)查看是否解决了您的问题:

composer require -W symfony/mailer

Symfony/Mailer is您(当前)锁定文件唯一的问题。

symfony/mailer is fixed/locked to v4.4.42 in your project.

Run the Composer require command with --with-all-dependencies (-W) to see if it solves your problem:

composer require -W symfony/mailer

symfony/mailer is the only problem you have with your (current) lock file.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文