无法更新 Symfony 版本
Unable to update Symfony version
我在将 Symfony 版本升级到 4.4.* 时遇到困难。我收到此错误消息。
Problem 1
- Conclusion: don't install symfony/symfony v4.4.7
- Conclusion: don't install symfony/symfony v4.4.6
- Conclusion: don't install symfony/symfony v4.4.5
- Conclusion: don't install symfony/symfony v4.4.4
- Conclusion: don't install symfony/symfony v4.4.3
- Conclusion: don't install symfony/symfony v4.4.2
- Conclusion: don't install symfony/symfony v4.4.1
- Conclusion: don't install symfony/symfony v4.4.0
- Conclusion: don't install symfony/symfony v4.4.0-RC1
- Conclusion: don't install symfony/symfony v4.4.0-BETA2
- Conclusion: don't install symfony/symfony v4.4.0-BETA1
- don't install symfony/http-client v5.0.7|don't install symfony/symfony 4.4.x-dev
- don't install symfony/symfony 4.4.x-dev|remove symfony/http-client v5.0.7
- don't install symfony/symfony 4.4.x-dev|don't install symfony/http-client v5.0.7
- Installation request for symfony/symfony 4.4.* -> satisfiable by symfony/symfony[4.4.x-dev, v4.4.0, v4.4.0-BETA1, v4.4.0-BETA2, v4.4.0-RC1, v4.4.1, v4.4.2, v4.4.3, v4.4.4, v4.4.5, v4.4.6, v4.4.7].
- Installation request for symfony/http-client (locked at v5.0.7, required as ^5.0) -> satisfiable by symfony/http-client[v5.0.7].
我在 Whosebug 上查看了一些对我有帮助的问题,但我开始认为这个作曲家脚本中的每个错误都是不同的错误。
这是我的一部分 composer.json
"php": "~7.3.0",
"resquebundle/resque": "^2.0",
"doctrine/doctrine-bundle": "~1.4",
"doctrine/doctrine-migrations-bundle": "1.1.1",
"doctrine/migrations": "1.2.2",
"friendsofsymfony/rest-bundle": "~1.7",
"guzzlehttp/guzzle": "~6.0",
"incenteev/composer-parameter-handler": "~2.0",
"jms/serializer-bundle": "^1.1",
"league/fractal": "0.12.*",
"sensio/distribution-bundle": "^5.0.19",
"sensio/framework-extra-bundle": "~3.0",
"symfony/assetic-bundle": "~2.3",
"symfony/monolog-bundle": "^3.4",
"symfony/symfony": "4.4.*",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/http-client": "^5.0"
你们能帮帮我吗?
symfony/symfony
是所有 Symfony 组件的主要存储库。请查看 https://packagist.org/packages/symfony/symfony 中的 "replaces" 部分,了解具体涵盖了哪些组件。
在您的特殊情况下,v4.4.* 中 symfony/symfony
的安装替换了完全相同版本中 symfony/http-client
的安装。此外,您的配置在 v5.0 中通过 composer.json
的最后一行列出了 symfony/http-client
的严格要求。由于一个包不能同时安装两个不同的版本,所以无法自动解决。
您有两种可能性:要么在 v5.0 中安装 symfony/symfony
(这可能会导致其他软件包出现新问题),要么在 v4.4 中安装 symfony/http-client
。在这两种情况下,您之后都应该将 symfony/symfony
的要求拆分为一组真正需要的组件;或删除 symfony/http-client
。让需求列表中的所有组件 和 单独列出一个组件没有意义
我在将 Symfony 版本升级到 4.4.* 时遇到困难。我收到此错误消息。
Problem 1
- Conclusion: don't install symfony/symfony v4.4.7
- Conclusion: don't install symfony/symfony v4.4.6
- Conclusion: don't install symfony/symfony v4.4.5
- Conclusion: don't install symfony/symfony v4.4.4
- Conclusion: don't install symfony/symfony v4.4.3
- Conclusion: don't install symfony/symfony v4.4.2
- Conclusion: don't install symfony/symfony v4.4.1
- Conclusion: don't install symfony/symfony v4.4.0
- Conclusion: don't install symfony/symfony v4.4.0-RC1
- Conclusion: don't install symfony/symfony v4.4.0-BETA2
- Conclusion: don't install symfony/symfony v4.4.0-BETA1
- don't install symfony/http-client v5.0.7|don't install symfony/symfony 4.4.x-dev
- don't install symfony/symfony 4.4.x-dev|remove symfony/http-client v5.0.7
- don't install symfony/symfony 4.4.x-dev|don't install symfony/http-client v5.0.7
- Installation request for symfony/symfony 4.4.* -> satisfiable by symfony/symfony[4.4.x-dev, v4.4.0, v4.4.0-BETA1, v4.4.0-BETA2, v4.4.0-RC1, v4.4.1, v4.4.2, v4.4.3, v4.4.4, v4.4.5, v4.4.6, v4.4.7].
- Installation request for symfony/http-client (locked at v5.0.7, required as ^5.0) -> satisfiable by symfony/http-client[v5.0.7].
我在 Whosebug 上查看了一些对我有帮助的问题,但我开始认为这个作曲家脚本中的每个错误都是不同的错误。
这是我的一部分 composer.json
"php": "~7.3.0",
"resquebundle/resque": "^2.0",
"doctrine/doctrine-bundle": "~1.4",
"doctrine/doctrine-migrations-bundle": "1.1.1",
"doctrine/migrations": "1.2.2",
"friendsofsymfony/rest-bundle": "~1.7",
"guzzlehttp/guzzle": "~6.0",
"incenteev/composer-parameter-handler": "~2.0",
"jms/serializer-bundle": "^1.1",
"league/fractal": "0.12.*",
"sensio/distribution-bundle": "^5.0.19",
"sensio/framework-extra-bundle": "~3.0",
"symfony/assetic-bundle": "~2.3",
"symfony/monolog-bundle": "^3.4",
"symfony/symfony": "4.4.*",
"symfony/swiftmailer-bundle": "~2.3",
"symfony/http-client": "^5.0"
你们能帮帮我吗?
symfony/symfony
是所有 Symfony 组件的主要存储库。请查看 https://packagist.org/packages/symfony/symfony 中的 "replaces" 部分,了解具体涵盖了哪些组件。
在您的特殊情况下,v4.4.* 中 symfony/symfony
的安装替换了完全相同版本中 symfony/http-client
的安装。此外,您的配置在 v5.0 中通过 composer.json
的最后一行列出了 symfony/http-client
的严格要求。由于一个包不能同时安装两个不同的版本,所以无法自动解决。
您有两种可能性:要么在 v5.0 中安装 symfony/symfony
(这可能会导致其他软件包出现新问题),要么在 v4.4 中安装 symfony/http-client
。在这两种情况下,您之后都应该将 symfony/symfony
的要求拆分为一组真正需要的组件;或删除 symfony/http-client
。让需求列表中的所有组件 和 单独列出一个组件没有意义