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.
5
Answers
Make sure you have Magento repo added in composer.json file.
Which version you are tyring to install?
Also, check that you have in your composer.json file.
If you try to install Magento Commerce (former Enterprise)
Run
composer show magento/magento-cloud-metapackage --all
And in result you will be able to check which versions are available for this package.
Create auth.json file in Magento root directory
add repo.magento.com username Password
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).
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.