VPS侦探论坛

 找回密码
 注册
查看: 352|回复: 1

php版本问题

[复制链接]
发表于 2020-11-29 21:51:17 | 显示全部楼层 |阅读模式



我明明安装的是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[2.3.6].
    - 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[1.0.0].
    - magento/composer-root-update-plugin 1.0.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] 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[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.
  Problem 4
    - Root composer.json requires magento/magento2-functional-testing-framework ~2.6.5 -> satisfiable by magento/magento2-functional-testing-framework[2.6.5].
    - 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[6.5.0, ..., 6.5.14] 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[6.5.0, ..., 6.5.14].

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.

美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2020-11-30 11:15:53 | 显示全部楼层


接你你上一个贴子可以确定你肯定通过yum安装了其他的php
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2021-5-12 06:01 , Processed in 0.045481 second(s), 26 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表