skip to Main Content

Creating a Fresh m2 install. Following the usual steps we have. Instailling it via composer.

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

But then errors with the below.

Any ideas?

 composer create-project --repository=https://repo.magento.com/ magento/project-community-edition
Creating a "magento/project-community-edition" project at "./project-community-edition"
Warning from repo.magento.com: You haven't provided your Magento authentication keys. For instructions, visit https://devdocs.magento.com/guides/v2.3/install-gde/prereq/connect-auth.html

In CurlDownloader.php line 617:

  The "https://repo.magento.com/packages.json" file could not be downloaded (HTTP/2 404 ):
  {"warning":"You havenu0027t provided your Magento authentication keys. For instructions, visit https://devdocs.magento.com/guides/v2.3/install-gde/prereq/connect-auth.html"}


create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--no-audit] [--audit-format AUDIT-FORMAT] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--ask] [--] [<package> [<directory> [<version>]]]

Tried a couple of options but all get the same answer.

2

Answers


  1. The problem is with composer. You need to update the Magento keys in composer using the below commands, because composer is not asking for the keys.

    Try this:

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

    Login or Signup to reply.
  2. Note that in the command
    composer create-project –repository-url=https://repo.magento.com/ magento/project-community-edition projectname
    there’s a single space after https://repo.magento/com/
    This worked for me. Hope this helps.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search