我正在嘗試使用以下步驟更新 Magento
- composer 需要 magento/product-enterprise-edition=2.4.3 --no-update 在 composer.json 存檔上。
- 運行作曲家更新
我有這些問題
問題 1
- magento/project-enterprise-edition 存在于版本 2.4.2 中,不能被 Composer 修改
- magento/product-enterprise-edition 2.4.3 需要 vertexinc/product-magento-module-commerce 4.2.1 -> 可由 vertexinc/product-magento-module-commerce[4.2.1] 滿足。
- vertexinc/product-magento-module-commerce[4.2.1] 無法安裝,因為這需要洗掉 magento/project-enterprise-edition[2.4.2]。它們都取代了 vertex/product-magento-module-commerce,因此不能共存。
- 根 composer.json 需要 magento/product-enterprise-edition 2.4.3 -> 可滿足 magento/product-enterprise-edition[2.4.3]。
知道如何解決這個問題嗎?
謝謝!
uj5u.com熱心網友回復:
乍一看,我會說,當您composer require --no-update [--] magento/product-enterprise-edition=2.4.3明確不進行任何更新時,原始的 Magento 企業版被鎖定到 2.4.2 版本。
然后運行composer update并沒有更新它,導致報告的最重要的問題(它看起來導致我,所有其他問題都是由它引起的):
magento/project-enterprise-edition存在于版本中2.4.2并且不能被 Composer 修改
我自己的理解是Composer 不能修改它的原因是因為magento/project-enterprise-edition被鎖定到2.4.2.
嘗試運行:
composer update magento/project-enterprise-edition
明確更新該軟體包。
(我不能說 - 因為你沒有在你的問題中分享 - 為什么你確實運行composer requirewith --no-update,只是--no-update鎖定檔案沒有更新,它似乎正在使用并且進一步固定magento/project-enterprise-edition到 [previous! ] 版本2.4.2- 你想更新到2.4.3[!])。
此外,運行
composer update --with-dependencies magento/project-enterprise-edition或者composer update --with-all-dependencies magento/project-enterprise-edition
可能有助于升級后續問題以使依賴項更新命令更具約束力。摘自composer update --help (作曲家版本 2.1.11 2021-11-02 12:10:2):
-w,--update-with-dependencies: 允許更新繼承的依賴項,除了那些是根需求的依賴項。-W,--update-with-all-dependencies: 允許更新所有繼承的依賴項,包括那些是根需求的依賴項。
根要求是您composer.{json,lock}檔案中的要求。
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/496305.html
