skip to Main Content

Trying to execute: composer update
Loading composer repositories with package information
Updating dependencies (including require-tested)
Your requirements could not be resolved to an install-able set of packages.

Problem 1
– The requested package magento/magento-cloud-metapackage could not be found in any version, there may be a typo in the package name.

Potential causes:
– A typo in the package name
– The package is not available in a stable-enough version according to your minimum-stability setting
see https://getcomposer.org/doc/04-schema.md#minimum-stability for more details.
– It’s a private package and you forgot to add a custom repository to find it

Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.
enter image description here

5

Answers


  1. Make sure you have Magento repo added in composer.json file.

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

    Which version you are tyring to install?
    Also, check that you have in your composer.json file.

    "minimum-stability": "dev",
    "prefer-stable": true,
    
    Login or Signup to reply.
  2. If you try to install Magento Commerce (former Enterprise)

     composer create-project --repository-url=https://repo.magento.com/ magento/project-enterprise-edition <install-directory-name>
    
    Login or Signup to reply.
  3. Run composer show magento/magento-cloud-metapackage --all

    And in result you will be able to check which versions are available for this package.

    Login or Signup to reply.
  4. Create auth.json file in Magento root directory

    add repo.magento.com username Password

    {
        "http-basic": {
            "repo.magento.com": {
                "username": "<user key>",
                "password": "<password Key>"
            }
        }  
    }
    

    Run command "Composer update"


    You can get the username/password for your account by checking the access keys from within the Magento Marketplace (via Documentation).

    Login or Signup to reply.
  5. I have noticed this error two times and it got resolved the next day. I believe there is either some upgradation done by the magento due to which the package is not available to download from the repo.

    My suggestion is to either contact the magento support team / try it out the next should probable work.

    I had tried it on next day and it starting updating.

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