I'm trying install latest version magento community.
Preconditions
Steps to reproduce
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition magento2
Error
Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages. Problem 1 - The requested package allure-framework/allure-phpunit could not be found in any version, there may be a typo in the package name. Problem 2 - The requested package dealerdirect/phpcodesniffer-composer-installer could not be found in any version, there may be a typo in the package name. Problem 3 - The requested package friendsofphp/php-cs-fixer could not be found in any version, there may be a typo in the package name. Problem 4 - The requested package lusitanian/oauth could not be found in any version, there may be a typo in the package name. Problem 5 - The requested package magento/magento-coding-standard could not be found in any version, there may be a typo in the package name. Problem 6 - The requested package magento/magento2-functional-testing-framework could not be found in any version, there may be a typo in the package name. Problem 7 - The requested package pdepend/pdepend could not be found in any version, there may be a typo in the package name. Problem 8 - The requested package phpcompatibility/php-compatibility could not be found in any version, there may be a typo in the package name. Problem 9 - The requested package phpmd/phpmd could not be found in any version, there may be a typo in the package name. Problem 10 - The requested package phpstan/phpstan could not be found in any version, there may be a typo in the package name. Problem 11 - The requested package phpunit/phpunit could not be found in any version, there may be a typo in the package name. Problem 12 - The requested package sebastian/phpcpd could not be found in any version, there may be a typo in the package name. Problem 13 - The requested package squizlabs/php_codesniffer could not be found in any version, there may be a typo in the package name. Problem 14 - magento/product-community-edition 2.3.5-p1 requires braintree/braintree_php 3.35.0 -> no matching package found. - magento/product-community-edition 2.3.5-p1 requires braintree/braintree_php 3.35.0 -> no matching package found. - Installation request for magento/product-community-edition 2.3.5-p1 -> satisfiable by magento/product-community-edition[2.3.5-p1]. 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.
How to fix it?
Thanks.
Solved! Go to Solution.
This worked for me:
key -vvv resolve my problem. Thanks all.
Hi @godgg
Kindly refer below URL to install Magento 2 using composer with CentOS Linux:
https://www.mageplaza.com/devdocs/how-install-magento-2-centos.html
Issue resolved ?
Please click on Kudos and Accept as Solution !
Hi, @Bhanu Periwal thanks for answer.
I know i can still download pack from https://github.com/magento/magento2/releases, extract this pack and install in Magento Setup Wizard, but, I prefer to composer it.
I am following the docs:
https://devdocs.magento.com/guides/v2.3/install-gde/composer.html
Step: Get the metapackage, number 3, composer gives me list problems.
Hello @godgg
Any version of Composer dated between November 21 and November 26, 2015 has this issue. To confirm this issue is related to the Composer version, enter the following command:
composer -v
The version displays similar to the following:
Composer version 1.0-dev (2b14f0a047dd4f3545ec82381f65c36ea93a4c81) 2015-11-25 17:13:09
Note the date is 2015-11-25, which indicates Composer has this issue.
To work around it:
Change your version of Composer to enable you to download the Magento software by doing any of the following:
Downgrade Composer using the following command:
composer self-update 1.0.0-alpha11
Upgrade Composer to a version later than November 26, 2015:
composer self-update
Delete your Magento 2 directory and subdirectories.
composer create-project
or git clone
.After successfully downloading the Magento software, update Composer:
composer self-update
Hi @Manish Mittal. Downgrade Composer led to the following:
# composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition magento2 Do not run Composer as root/super user! See https://getcomposer.org/root for details Continue as root/super user [yes]? yes Creating a "magento/project-community-edition" project at "./magento2" Installing magento/project-community-edition (2.3.5-p1) - Installing magento/project-community-edition (2.3.5-p1): Extracting archive Created project in /var/www/admin/data/www/magento2 No lock file found. Updating dependencies instead of installing from lock file. Use composer update over composer install if you do not have a lock file. Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires magento/product-community-edition 2.3.5-p1 -> satisfiable by magento/product-community-edition[2.3.5-p1]. - magento/product-community-edition 2.3.5-p1 requires magento/composer ~1.5.0 -> satisfiable by magento/composer[1.5.0, 1.5.1, 1.5.x-dev] from composer repo (https://repo.packagist.org) but magento/composer[1.0.2, ..., 1.2.2] from composer repo (https://repo.magento.com) has higher repository priority. The packages with higher priority do not match your constraint and are therefore not installable. See https://getcomposer.org/repoprio for details and assistance. Problem 2 - Root composer.json requires dealerdirect/phpcodesniffer-composer-installer ^0.5.0 -> satisfiable by dealerdirect/phpcodesniffer-composer-installer[v0.5.0]. - dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint. You are using a snapshot build of Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report an issue to them to ask them to support Composer 2. To work around this you can run Composer with --ignore-platform-req=composer-plugin-api, but this may result in broken plugins and bigger problems down the line.
how fix it?
Thanks a lot.
#composer --version
Composer version 1.0.0-alpha11 2015-11-14 16:21:07
Hello @godgg
As per shared error, you should try to install version
magento/composer ~1.5.0 -> satisfiable by magento/composer[1.5.0, 1.5.1, 1.5.x-dev]
or follow this for more info
https://magento.stackexchange.com/questions/251838/magento-2-2-6-to-2-3-upgrade-fails-with-composer
This worked for me:
key -vvv resolve my problem. Thanks all.