cancel
Showing results for 
Search instead for 
Did you mean: 

Error install magento 2.4.7 using composer

Error install magento 2.4.7 using composer

I am using following command to install magento 2.4.7 in xampp on windows platform,

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.4.7 magento2

I am getting following error, 
error.png
Note : I know my private key and public key, when i enter the command it's never asking the details

2 REPLIES 2

Re: Error install magento 2.4.7 using composer

Run this command to store your keys:

composer config --global http-basic.repo.magento.com <public_key> <private_key>

Make sure your authentication keys are saved in auth.json. You can find it in C:\Users\<YourUsername>\AppData\Roaming\Composer on Windows. It should look something like this:

{
"http-basic": {
"repo.magento.com": {
"username": "<public_key>",
"password": "<private_key>"
}
}
}

Sometimes clearing the cache helps. After these steps, run your installation command again.

Re: Error install magento 2.4.7 using composer

Still getting same error.