安装Symfony/Maker-Bundle时问题
我正在处理一个使用Symfony 3.4
创建的应用程序,并更新为Symfony 4.4
,我需要更新doctrine/toctrine/untrector
至2。^版本要安装Symfony/Make-Bundle
,
composer require symfony/maker-bundle --dev
我得到:
Problem 1
- Root composer.json requires symfony/maker-bundle ^1.43 -> satisfiable by symfony/maker-bundle[v1.43.0].
- symfony/maker-bundle v1.43.0 requires doctrine/inflector ^2.0 -> found doctrine/inflector[2.0.0, ..., 2.0.4] but the package is fixed to 1.4.4 (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.
Problem 2
- doctrine/doctrine-cache-bundle 1.4.0 requires doctrine/inflector ^2.0 -> found doctrine/inflector[2.0.0, ..., 2.0.4] but the package is fixed to 1.4.4 (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.
- doctrine/doctrine-bundle 1.12.13 requires doctrine/doctrine-cache-bundle ~1.2 -> satisfiable by doctrine/doctrine-cache-bundle[1.4.0].
- doctrine/doctrine-bundle is locked to version 1.12.13 and an update of this package was not requested.
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
然后尝试:
composer require symfony/maker-bundle --dev -W
然后尝试删除copser.lock.lock
,但我无法安装膨胀量V2
I'm dealing with an application created with symfony 3.4
and updated to symfony 4.4
, I need to update doctrine/inflector
to 2.^ version to install symfony/make-bundle
, with:
composer require symfony/maker-bundle --dev
I get:
Problem 1
- Root composer.json requires symfony/maker-bundle ^1.43 -> satisfiable by symfony/maker-bundle[v1.43.0].
- symfony/maker-bundle v1.43.0 requires doctrine/inflector ^2.0 -> found doctrine/inflector[2.0.0, ..., 2.0.4] but the package is fixed to 1.4.4 (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.
Problem 2
- doctrine/doctrine-cache-bundle 1.4.0 requires doctrine/inflector ^2.0 -> found doctrine/inflector[2.0.0, ..., 2.0.4] but the package is fixed to 1.4.4 (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.
- doctrine/doctrine-bundle 1.12.13 requires doctrine/doctrine-cache-bundle ~1.2 -> satisfiable by doctrine/doctrine-cache-bundle[1.4.0].
- doctrine/doctrine-bundle is locked to version 1.12.13 and an update of this package was not requested.
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Then I tried with :
composer require symfony/maker-bundle --dev -W
and I tried deleting composer.lock
But I can't install inflector v2
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我也有同样的问题,您应该尝试使用任何兼容的制造商捆绑版本
I have the same issue, you should try with any compatible maker-bundle version