Magento – Magento Code Migration Tool – Installation issue

command lineinstallationmagento2third-party-module

i'm currently following the steps in

https://github.com/magento/code-migration

to install the Code Migration Tool (not data migrate) to my localhost.

i am facing a problem at the

Installation step

When i run composer install,

  1. it requires me username and password,
    saying
    Authentication required (repo.magento.com) ,

and i tried a few attemps, it just says

Invalid credential for https://repo.magento.com/packages.json, aborting.

i have done little research about the username and password on internet..

https://community.magento.com/t5/Just-Ask-Alan/Invalid-credentials-for-https-repo-magento-com-packages-json/m-p/23820#M127

They suggested to get the private key and public key from my magento marketplace account, i did that but it doesn't work.


  1. Also, the cmd doesn't allow me to type anything at the password.

Can anyone help me with this? Thanks >.<

Best Answer

@Tine I use the auth.json approach, where on my Mac I have created a file ~/.composer/auth.json which looks like this:

{
    "http-basic": {
        "repo.magento.com": {
            "username": "MAGENTO_CONNECT_PUBLIC_KEY",
            "password": "MAGENTO_CONNECT_PRIVATE_KEY"
        }
    }
}
  • The ~/.composer directory has 755 permissions
  • The ~/.composer/auth.json file has 644 permissions

If you've followed the directions here: http://devdocs.magento.com/guides/v2.0/install-gde/prereq/connect-auth.html and created the auth.json file, then you shouldn't have any issues with permissions, as your credentials are accurate. Also, if you've verified that the directory/file permissions for ~/.composer/auth.json are correct, then there shouldn't be any problems with Composer accessing your credentials.

You could also try to clear your Composer cache to be thorough: https://getcomposer.org/doc/03-cli.md#clear-cache . If after clearing your cache, correctly creating/using the auth.json file, you're not able to install the migration tool, please post information about your environment....operating system, are you behind a firewall/proxy, etc.

Related Topic