我有一个magento2.2.6网站,我试图更新。现在我遇到了这个错误:
symfony / dependency-injection v3.3.0与symfony / console [v4.1.5]冲突。
我尝试并查看了多个论坛和问题,也更改了一些版本,但均未取得良好的结果。冲突的问题依然存在,我的选择已经用光了。
.{ Problem
- Installation request for magento/product-community-edition 2.3.0 -> satisfiable by magento/product-community-edition[2.3.0].
- magento/framework 102.0.0 requires symfony/console ~4.1.0 -> satisfiable by symfony/console[v4.1.0, v4.1.1, v4.1.2, v4.1.3, v4.1.4, v4.1.5, v4.1.6, v4.1.7, v4.1.8].
- symfony/dependency-injection v3.3.0 conflicts with symfony/console[v4.1.0].
- symfony/dependency-injection v3.3.0 conflicts with symfony/console[v4.1.1].
- symfony/dependency-injection v3.3.0 conflicts with symfony/console[v4.1.2].
- symfony/dependency-injection v3.3.0 conflicts with symfony/console[v4.1.3].
- symfony/dependency-injection v3.3.0 conflicts with symfony/console[v4.1.4].
- symfony/dependency-injection v3.3.0 conflicts with symfony/console[v4.1.5].
- symfony/dependency-injection v3.3.0 conflicts with symfony/console[v4.1.6].
- symfony/dependency-injection v3.3.0 conflicts with symfony/console[v4.1.7].
- symfony/dependency-injection v3.3.0 conflicts with symfony/console[v4.1.8].
- magento/product-community-edition 2.3.0 requires magento/framework 102.0.0 -> satisfiable by magento/framework[102.0.0].
- Installation request for symfony/dependency-injection 3.3.0 -> satisfiable by symfony/dependency-injection[v3.3.0]
}
任何想法
答案 0 :(得分:0)
要首先解决上述问题,您必须运行以下命令
第1步
composer config preferred-install dist
composer config sort-packages true
composer config prefer-stable true
第2步
composer require --dev friendsofphp/php-cs-fixer:~2.10.0 --no-update
第3步
composer require --dev friendsofphp/php-cs-fixer:~2.10.0 --no-update
第4步
php -r '$autoload=json_decode(file_get_contents("composer.json"), true); $autoload["autoload"]["psr-4"]["Zend\\Mvc\\Controller\\"]= "setup/src/Zend/Mvc/Controller/"; file_put_contents("composer.json", json_encode($autoload, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES));'
第5步
composer require magento/product-community-edition 2.3.0 --no-update
步骤6
composer update
第7步
php bin/magento setup:upgrade
答案 1 :(得分:0)
我做了每一步,这是结果:
在作曲家更新后
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for magento/product-community-edition 2.3.0 -> satisfiable by magento/product-community-edition[2.3.0].
- magento/product-community-edition 2.3.0 requires magento/magento2-base 2.3.0 -> satisfiable by magento/magento2-base[2.3.0].
- Conclusion: remove symfony/dependency-injection v3.3.0
- magento/magento2-base 2.3.0 requires symfony/event-dispatcher ~4.1.0 -> satisfiable by symfony/event-dispatcher[v4.1.0, v4.1.1, v4.1.2, v4.1.3, v4.1.4, v4.1.5, v4.1.6, v4.1.7, v4.1.8, v4.1.9].
- symfony/dependency-injection v3.3.0 conflicts with symfony/event-dispatcher[v4.1.0].
- symfony/dependency-injection v3.3.0 conflicts with symfony/event-dispatcher[v4.1.1].
- symfony/dependency-injection v3.3.0 conflicts with symfony/event-dispatcher[v4.1.2].
- symfony/dependency-injection v3.3.0 conflicts with symfony/event-dispatcher[v4.1.3].
- symfony/dependency-injection v3.3.0 conflicts with symfony/event-dispatcher[v4.1.4].
- symfony/dependency-injection v3.3.0 conflicts with symfony/event-dispatcher[v4.1.5].
- symfony/dependency-injection v3.3.0 conflicts with symfony/event-dispatcher[v4.1.6].
- symfony/dependency-injection v3.3.0 conflicts with symfony/event-dispatcher[v4.1.7].
- symfony/dependency-injection v3.3.0 conflicts with symfony/event-dispatcher[v4.1.8].
- symfony/dependency-injection v3.3.0 conflicts with symfony/event-dispatcher[v4.1.9].
- Installation request for symfony/dependency-injection 3.3.0 -> satisfiable by symfony/dependency-injection[v3.3.0].