i'm currently following the steps in
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
,
- 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..
They suggested to get the private key and public key from my magento marketplace account, i did that but it doesn't work.
- 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:755
permissions644
permissionsIf 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.