我有一个magento2.2.6网站,我试图更新。现在我承认了这个错误:
symfony/依赖-injection v3.3.0与symfony/控制台4.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]
}有什么想法吗?
发布于 2018-12-10 14:08:54
要解决上述问题,首先必须运行以下命令
步骤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发布于 2018-12-11 18:37:23
我做了每一步,这就是结果:
作曲家更新后
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].https://stackoverflow.com/questions/53635875
复制相似问题