更新Magento2版本2.4.2至2.4.3问题

发布于 2025-02-08 22:57:52 字数 676 浏览 3 评论 0原文

我正在尝试使用以下步骤更新Magento,

  1. 需要Magento/product-enterprise-edition = 2.4.3 - composer.json Archive上的不及时。
  2. 运行作曲家更新

,我有这些问题

问题1

-Magento/project-enterprise-edition在版本2.4.2上存在,并且无法通过Composer

修改/product-enterprise-edition 2.4.3需要顶点/product-magento-Module-Commerce 4.2.1 - >通过Vertexinc/product-Magento-Module-commerce [4.2.1]

。 - Enterprise-Edition [2.4.2]。他们都取代了顶点/产品 - 马根托托模型 - 商务,因此无法共存。

- root composer.json需要Magento/product-entererprise-edition-edition 2.4.3 - >通过Magento/product-enterprise-edition [2.4.3]。

是否有任何想法如何解决此问题?

谢谢!

i am trying to update Magento with the following steps

  1. composer require magento/product-enterprise-edition=2.4.3 --no-update on composer.json archive.
  2. run composer update

And i have these problems

Problem 1

- magento/project-enterprise-edition is present at version 2.4.2 and cannot be modified by Composer

- magento/product-enterprise-edition 2.4.3 requires vertexinc/product-magento-module-commerce 4.2.1 -> satisfiable by vertexinc/product-magento-module-commerce[4.2.1].

- vertexinc/product-magento-module-commerce[4.2.1] cannot be installed as that would require removing magento/project-enterprise-edition[2.4.2]. They both replace vertex/product-magento-module-commerce and thus cannot coexist.

- Root composer.json requires magento/product-enterprise-edition 2.4.3 -> satisfiable by magento/product-enterprise-edition[2.4.3].

Any idea how to solve this problem?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

无法回应 2025-02-15 22:57:52

乍一看,我要说的是,当您进行作曲家需要-no-update [ - ] Magento/product-enterprise-edition = 2.4.3明确不做任何更新,企业版将锁定到2.4.2版。

然后,运行Composer Update没有更新它,从而导致了报告的首要问题(看来导致我,所有其他问题都是由IT引起的):

magento/project-enterprise-edition在版本2.4.2上都存在,并且Composer

无法修改

这是我自己的理解,是因为它无法修改的原因Composer 是因为Magento/Project-Enterprise-Edition IS 锁定 2.4.2

尝试运行:

composer update magento/project-enterprise-edition

明确更新该软件包。

(我不能说 - 因为您没有在您的问题中分享 - 为什么您确实运行了Composer需要 - no-update,只是用<代码> - 没有更高的锁定文件未更新,似乎正在使用,并且在固定magento/project-enterprise-edition to [以上!]版本<代码> 2.4.2 - 您要 更新 2.4.3 [!])。

此外,运行

  • 作曲家更新 - 依赖性agento/project-enterprise-edition
  • 作曲家更新-with-with-with-with-All Dectiencies magento/project-enterprise-edition

可能是有助于升级后续问题以使依赖关系更新命令更具绑定。摘录摘自作曲家更新-Help (作曲家版本2.1.11 2021-11-02 12:10:2)

  • -w- with-with-with-with-repentencies:允许更新继承的依赖关系,除非是根本要求的。
  • -w- with-with-with-with-with-witherencies:允许更新所有继承的依赖关系,包括root要求的依赖。

根本要求是您的Composer。{JSON,lock}文件。

On first glance I'd say that while you do the composer require --no-update [--] magento/product-enterprise-edition=2.4.3 explicitly not doing any updates, the original Magento Enterprise Edition is kept locked to version 2.4.2.

Then running composer update is not updating it, resulting into the foremost problem reported (it looks leading to me, that all other problems are caused by it):

magento/project-enterprise-edition is present at version 2.4.2 and cannot be modified by Composer

It is my own understanding that the reason it cannot be modified by Composer is because magento/project-enterprise-edition is locked to 2.4.2.

Try running:

composer update magento/project-enterprise-edition

to update that package explicitly.

(I can't say - as you did not share in your question - why you did run the composer require with --no-update, it is just that with --no-update the lock file is not updated and it seems that it is in use and further on pinning magento/project-enterprise-edition to [previous!] version 2.4.2 - you want to update to 2.4.3 [!]).

Additionally, running

  • composer update --with-dependencies magento/project-enterprise-edition or
  • composer update --with-all-dependencies magento/project-enterprise-edition

may be useful to escalate follow-up issues to make the dependency update command more binding. Excerpt from composer update --help (Composer version 2.1.11 2021-11-02 12:10:2):

  • -w, --update-with-dependencies: Allows inherited dependencies to be updated, except those that are root requirements.
  • -W, --update-with-all-dependencies: Allows all inherited dependencies to be updated, including those that are root requirements.

Root requirements are those in your composer.{json,lock} file.

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