使用git进行Magento 2代码迁移安装

时间:2016-02-16 10:21:22

标签: git magento magento2 magento-2.0

我已获得link工具将Magento 1.x的代码迁移到Magento 2.x.

我在cmd中尝试了以下命令来安装此模块 -

composer config repositories.code-migration git https://github.com/magento/code-migration

composer require magento/migration:dev-master

我得到的是异常 -

` Problem 1`
    - The requested package magento/code-migration-develop could not be found in any version, there may be a typo in the package name.

`Potential causes`:
 1. A typo in the package name
 2. The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Installation failed, reverting ./composer.json to its original content.

知道如何解决这个问题吗?

1 个答案:

答案 0 :(得分:-1)

更改

composer require magento/migration:dev-master

composer require magento/data-migration-tool:2.0.2

引用参考:http://devdocs.magento.com/guides/v2.0/migration/migration-tool-install.html#install-github

  

composer需要magento / data-migration-tool:&lt;版本&gt;

     

其中&lt;版本&gt;必须与Magento 2代码库的版本匹配。