I am learning how to convert Magento 1.x to Magento 2.x
I installed fresh
Magento ver. 126.96.36.199 from GitHub mirror and fresh
Magento 2.2.3 using composer
maddy@maddy:/var/www/html/magento-composer$ sudo php bin/magento --version [sudo] password for maddy: Magento CLI version 2.2.3
In magento 1.9.3 i created one product, one category and placed one order now i am trying to migrate it to fresh Magento 2.
i followed this link Install Data Migration Tool to install the toool.
composer config repositories.magento composer https://repo.magento.com composer require magento/data-migration-tool:2.2.3
but when i run above commands i got
[RuntimeException] You must pass the type and a url. Example: php composer.phar config reposit ories.foo vcs https://bar.com config [-g|--global] [-e|--editor] [-a|--auth] [--unset] [-l|--list] [-f|--file FILE] [--absolute] [--] [<setting-key>] [<setting-value>]... maddy@maddy:/var/www/html/magento-composer$
I am not able to solve this, can anyone see what is the issue.
Update: if i run below command i got some error realated to memory
maddy@maddy:/var/www/html/magento-composer$ composer require magento/data-migration-tool:2.2.3 Installation failed, reverting ./composer.json to its original content. The following exception is caused by a lack of memory and not having swap configured Check https://getcomposer.org/doc/articles/troubleshooting.md#proc-open-fork-failed-errors for details [ErrorException] proc_open(): fork failed - Cannot allocate memory maddy@maddy:/var/www/html/magento-composer$ free -m total used free shared buff/cache available Mem: 3868 2758 105 303 1005 476 Swap: 475 470 5 maddy@maddy:/var/www/html/magento-composer$