根composer.json需要php ^ 7.3,但您的php版本(8.0.0)不满足该要求 [英] Root composer.json requires php ^7.3 but your php version (8.0.0) does not satisfy that requirement
本文介绍了根composer.json需要php ^ 7.3,但您的php版本(8.0.0)不满足该要求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
运行 composer install
命令时出现异常错误.我安装PHP 8.0.0时需要PHP 7.3.此问题与在作曲家中覆盖PHP基本依赖项不同,因为我的级别更高版本的PHP(8.0.0)超出了要求,并且只想知道为什么它不起作用?
I have an unusual error while running composer install
command. It require PHP 7.3 while I have PHP 8.0.0. This quiestion is different from Override PHP base dependency in composer because I have a higher version of PHP (8.0.0) than it required and just want to know why it is not working?
Problem 1
- Root composer.json requires php ^7.3 but your php version (8.0.0) does not satisfy that requirement. Problem 2
- asm89/stack-cors is locked to version v2.0.1 and an update of this package was not requested.
- asm89/stack-cors v2.0.1 requires php ^7.0 -> your php version (8.0.0) does not satisfy that requirement. Problem 3
- laravel/framework is locked to version v8.10.0 and an update of this package was not requested.
- laravel/framework v8.10.0 requires php ^7.3 -> your php version (8.0.0) does not satisfy that requirement. Problem 4
- laravel/tinker is locked to version v2.4.2 and an update of this package was not requested.
- laravel/tinker v2.4.2 requires php ^7.2 -> your php version (8.0.0) does not satisfy that requirement. Problem 5
- facade/flare-client-php is locked to version 1.3.6 and an update of this package was not requested.
- facade/flare-client-php 1.3.6 requires php ^7.1 -> your php version (8.0.0) does not satisfy that requirement. Problem 6
- facade/ignition is locked to version 2.4.1 and an update of this package was not requested.
- facade/ignition 2.4.1 requires php ^7.2.5 -> your php version (8.0.0) does not satisfy that requirement. Problem 7
- fzaninotto/faker is locked to version v1.9.1 and an update of this package was not requested.
- fzaninotto/faker v1.9.1 requires php ^5.3.3 || ^7.0 -> your php version (8.0.0) does not satisfy that requirement. Problem 8
- nunomaduro/collision is locked to version v5.0.2 and an update of this package was not requested.
- nunomaduro/collision v5.0.2 requires php ^7.3 -> your php version (8.0.0) does not satisfy that requirement. Problem 9
- asm89/stack-cors v2.0.1 requires php ^7.0 -> your php version (8.0.0) does not satisfy that requirement.
- fruitcake/laravel-cors v2.0.2 requires asm89/stack-cors ^2.0.1 -> satisfiable by asm89/stack-cors[v2.0.1].
- fruitcake/laravel-cors is locked to version v2.0.2 and an update of this package was not requested.
推荐答案
这是因为在您的项目中您拥有的composer.json文件中:
It's becouse in your project in composer.json file you have:
"require": {
"php": ">=7.3",
.....
},
尝试将此要求更新为:
"require": {
"php": "^7.3|^8.0",
.....
},
这篇关于根composer.json需要php ^ 7.3,但您的php版本(8.0.0)不满足该要求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文