安装Symfony/Maker-Bundle时问题

发布于 2025-02-13 05:46:28 字数 1540 浏览 0 评论 0原文

我正在处理一个使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦里兽 2025-02-20 05:46:29

我也有同样的问题,您应该尝试使用任何兼容的制造商捆绑版本

composer require --dev symfony/maker-bundle:*

I have the same issue, you should try with any compatible maker-bundle version

composer require --dev symfony/maker-bundle:*
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文