我正在尝试将Magento 2从2.2.3
更新为2.2.5
。我运行以下命令:
composer require magento/product-community-edition 2.2.5 --no-update
composer update
然后出现以下错误:
The requested package magento/product–community–edition could not be found, it looks like its name is invalid, "––" is not allowed in package names.
作曲家要求将条目成功添加到我的composer.json中:
{
"name": "magento/project-community-edition",
"description": "eCommerce Platform for Growth (Community Edition)",
"type": "project",
"version": "2.1.1",
"license": [
"OSL-3.0",
"AFL-3.0"
],
"require": {
"magento/product-community-edition": "2.2.3",
"composer/composer": "@alpha",
"magento/product–community–edition": "2.2.5"
},
是否应该有关于2.2.3和2.2.5的两个条目?为什么会有未找到的错误?到目前为止,Magento 2中所有其他带有模块等的作曲家更新都可以正常工作,而作曲家没有问题。