php版本问题
我明明安装的是php7.4版本, 用 phpinfo测试也是php7.4, 为什么我用composer下载 magento2.3时提示Problem 1
- Root composer.json requires magento/product-community-edition 2.3.6 -> satisfiable by magento/product-community-edition.
- magento/product-community-edition 2.3.6 requires php ~7.1.3||~7.2.0||~7.3.0 -> your php version (5.4.16) does not satisfy that requirement.
Problem 2
- Root composer.json requires magento/composer-root-update-plugin ~1.0 -> satisfiable by magento/composer-root-update-plugin.
- magento/composer-root-update-plugin 1.0.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api but it does not match the constraint.
Problem 3
- Root composer.json requires dealerdirect/phpcodesniffer-composer-installer ^0.5.0 -> satisfiable by dealerdirect/phpcodesniffer-composer-installer.
- dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api but it does not match the constraint.
Problem 4
- Root composer.json requires magento/magento2-functional-testing-framework ~2.6.5 -> satisfiable by magento/magento2-functional-testing-framework.
- magento/magento2-functional-testing-framework 2.6.5 requires php ~7.1.0||~7.2.0||~7.3.0 -> your php version (5.4.16) does not satisfy that requirement.
Problem 5
- phpunit/phpunit require php ^7.0 -> your php version (5.4.16) does not satisfy that requirement.
- Root composer.json requires phpunit/phpunit ~6.5.0 -> satisfiable by phpunit/phpunit.
You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.
接你你上一个贴子可以确定你肯定通过yum安装了其他的php
页:
[1]