Invalid credentials for ‘https://repo.magento.com/packages.json’, aborting
Invalid credentials for ‘https://repo.magento.com/packages.json’, aborting
The error message “Invalid credentials for ‘https://repo.magento.com/packages.json‘, aborting” typically occurs when trying to authenticate with Magento’s Composer repository using incorrect or missing credentials. This issue often arises due to an incorrect username or password in your auth.json
file or when your Magento Marketplace API keys are not properly configured. To resolve this, ensure that your authentication details are correct by verifying your public key (as the username) and private key (as the password) from your Magento Marketplace account. Then, update your Composer authentication using the following command:
After updating the credentials, try running the Composer command again. If the issue persists, consider clearing Composer’s cache using composer clear-cache
and ensuring that your network connection is stable.