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,
Note : I know my private key and public key, when i enter the command it's never asking the details
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.
Still getting same error.