执行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.
它不是报错,仅仅是个提示,最终还是会自动安装适合的版本
好的,谢谢