0

我已经获得了将 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.

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

4

1 回答 1

-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:<版本>

其中 <version> 必须与 Magento 2 代码库的版本匹配。

于 2016-02-16T18:14:37.333 回答