'Enterprise magneto 2 setup using composer update
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.

Solution 1:[1]
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).
Solution 2:[2]
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,
Solution 3:[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.
Solution 4:[4]
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>
Solution 5:[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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | leek |
| Solution 2 | sudmak |
| Solution 3 | sudmak |
| Solution 4 | |
| Solution 5 | Priyank |
