0

Hi every on while download the Magento 2.4.6 getting the velow error. i done every configuraion accroding to requirement still geeting below error.

[Composer\Downloader\TransportException]
The "https://repo.magento.com/packages.json" file could not be downloaded (HTTP/1.1 404 Not Found)

Please help on this. thank you in advanse.

enter image description here

3

2 Answers 2

1

I think you forget to add auth.json with below content

{
    "http-basic": {
        "repo.magento.com": {
            "username": "<public-key>",
            "password": "<private-key>"
        }
    }
}
2
  • auth.json alredy added on root folder but still getting the same.
    – Vivek
    Commented Sep 2 at 8:36
  • can you share bug in detail after add auth.json? Commented Sep 2 at 13:38
0

Previous answer is right you need to specify the auth.json keys but you also need to specify it in the composer.json, which might be what you are missing there in the repositories section

   "magento": {
            "type": "composer",
            "url": "https://repo.magento.com/"
        },

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.