安装illuminate/database...报错

大鱼

问题描述

执行composer require -W psr/container ^1.1.1 illuminate/database illuminate/pagination illuminate/events symfony/var-dumper安装,提示php版本要求8.1以上,本地php版本7.4,不升级行不行?

报错信息

Cannot use illuminate/database's latest version v10.3.3 as it requires php ^8.1 which is not satisfied by your platform.
Cannot use illuminate/pagination's latest version v10.3.3 as it requires php ^8.1 which is not satisfied by your platform.
Cannot use illuminate/events's latest version v10.3.3 as it requires php ^8.1 which is not satisfied by your platform.
Cannot use symfony/var-dumper's latest version v6.2.5 as it requires php >=8.1 which is not satisfied by your platform.
1212 1 0
1个回答

智佳思远

截图
它不是报错,仅仅是个提示,最终还是会自动安装适合的版本

年代过于久远,无法发表回答
×
🔝