我已经(本地,Mamp)安装了最新的 Shopware (6.5.7.3)。但如果我尝试使用以下命令安装 Symfony 调试工具:
composer require shopware/dev-tools
我收到此错误:
Problem 1
- symfony/flex is locked to version v2.4.2 and an update of this package was not requested.
- symfony/flex v2.4.2 requires composer-plugin-api ^2.1 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
Problem 2
- symfony/framework-bundle v6.3.9 requires composer-runtime-api >=2.1 -> found composer-runtime-api[2.0.0] but it does not match the constraint.
- shopware/storefront v6.5.7.3 requires symfony/framework-bundle ~6.3.0 -> satisfiable by symfony/framework-bundle[v6.3.9].
- shopware/storefront is locked to version v6.5.7.3 and an update of this package was not requested.
You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.```
It used to work on previous versions (6.5.7.0 ?). And, if I update Shopware from, for example 6.5.7.0 to 6.5.7.3, it still works. But can not install in a fresh 6.5.7.3.
Anyone knows how to fix this?
您是否尝试先运行
composer update
?