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

时间:2016-11-11 11:30:43

标签: magento magento2

我尝试从 2.0.7&amp ;;升级Magento 2应用程序。 2.1.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 :(得分:0)

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

  1. composer需要magento / product-community-edition 2.1.0 --no-update
  2. 作曲家更新
  3. php bin / magento setup:upgrade

答案 1 :(得分: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之前的帖子。

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

  1. composer需要magento / product-community-edition 2.1.2 --no-update
  2. 作曲家更新
  3. bin / magento cache:clean
  4. bin / magento setup:upgrade
  5. -d memory_limit = -1 bin / magento setup:static-content:deploy de_DE en_US
  6. -d memory_limit = -1 bin / magento setup:di:compile
  7. bin / magento index:reindex
  8. bin / magento cache:clean