composer create-project magento-community problem
I’m trying install latest version magento community.
Preconditions
- OS: CentOS Linux release 7.8.2003
- PHP: 7.3.18
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.