首页 文章

Magento 2从Magento 2.0.7升级到Magento 2.1.2的问题

提问于
浏览
0

我尝试从 2.0.7 & 2.1.2 升级Magento 2应用程序,但它在 composer update 命令期间显示安装错误 .

Loading composer repositories with package information                                                           Updating dependencies (including require-dev)

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for magento/product-community-edition 2.1.0 -> satisfiable by magento/product-community-edition[2.1.0].
    - magento/product-community-edition 2.1.0 requires composer/composer 1.0.0-beta1 -> satisfiable by composer/composer[1.0.0-beta1] but these conflict with your requirements or minimum-stability.

我还应用了MDVA-532补丁 . 请帮忙

2 回答

  • 0

    您可以使用以下命令将Magento 2.0.7更新为Magento 2.1.2 .

    • composer需要magento / product-community-edition 2.1.0 --no-update

    • 作曲家更新

    • php bin / magento setup:upgrade

  • 0

    好像你的最小稳定性有问题 .

    尝试在composer.json中编写和编辑以下内容

    "require": {
        "magento/product-community-edition": "2.1.2",
    ..... your other requiered stuff...
    },
    

    ....你的这个文件的其他代码....

    然后:

    "minimum-stability": "dev",
        "prefer-stable": true,
        "repositories": {
            "0": {
                "type": "composer",
                "url": "https://repo.magento.com/"
            }
        }
    

    之后,尝试控制台命令,如之前Abhinav Kumar Singh中的帖子 .

    我编辑命令,以便在我看来它们会更好用:

    • composer需要magento / product-community-edition 2.1.2 --no-update

    • 作曲家更新

    • bin / magento cache:clean

    • bin / magento setup:upgrade

    • -d memory_limit = -1 bin / magento setup:static-content:deploy de_DE en_US

    • -d memory_limit = -1 bin / magento setup:di:compile

    • bin / magento index:reindex

    • bin / magento cache:clean

相关问题