Magento\ComposerRootUpdatePlugin\Updater\RootPackageRetriever::getOriginalEdition() 的返回值必须是 string 类型,返回 null

Sag*_*hal 1 upgrade magento magento2.4

我们正在使用以下命令将 magento2.4.3 升级到 2.4.4

composer require-commerce magento/product-community-edition:2.4.4
Run Code Online (Sandbox Code Playgroud)

还尝试过--no-update

不幸的是,我们遇到了错误的问题

Return value of Magento\ComposerRootUpdatePlugin\Updater\RootPackageRetriever::getOriginalEdition() must be of the type string, null returned
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

Ale*_*ola 7

按照官方指南:

( https://experienceleague.adobe.com/docs/commerce-operations/upgrade-guide/prepare/prerequirements.html?lang=en )

我理解正确的运行命令:

composer require magento/composer-root-update-plugin ~2.0 --no-update

然后你可以使用 2 个参数运行命令:

基础项目版本和基础项目版本

例如:

composer require-commerce magento/product-community-edition 2.4.4 --no-update --base-project-edition 'Open Source' --base-project-version 2.4.2