7

Trying to install magento 2 on localhost. I am getting this message

Invalid credentials for 'repo.magento.com/packages.json', aborting.

Initially, I had created a secure key by navigating to magentocommerce.com/magento-connect/customerdata/secureKeys/list/ url.

I tried composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition <installation directory name> command and entered the username as public key and password as private key. I was then prompted whether I need to save it? And I selected the option "Y".

But by some mistake the secure key got deleted.

Now, when I am trying to create a new project, its giving me

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

I want to update my auth.json file . But I'm unable to get the command. Can you please help me for the same?

Vaibhav Ahalpara
  • 5,249
  • 4
  • 42
  • 81
Sandhya Nair
  • 73
  • 1
  • 1
  • 6

1 Answers1

33

Use your public key as username and private key as password from your magento connect account

you can find the public and private key at:

https://developer.magento.com/customer/account/

Developer Portal -> My Access Keys -> Create A New Access Key(Or using exsting key)

Prince Patel
  • 22,708
  • 10
  • 97
  • 119