作曲家更新给出了错误phpunit/phpunit
我最近安装了PHP(8.1.7)和作曲家(2.3.7)和Laravel 9;
现在,我在运行命令时会遇到此错误
作曲家更新
在一个Laravel项目中,我进行了很多搜索,但找不到确切的解决方案,所有这些都没有讨论Phpunit/phpunit的问题。
错误看起来像这样:
Problem 1
- phpunit/phpunit[6.0.0, ..., 6.5.14] require php ^7.0 -> your php version (8.1.7) does not satisfy that requirement.
- Root composer.json requires phpunit/phpunit ~6.0 -> satisfiable by phpunit/phpunit[6.0.0, ..., 6.5.14].```
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须升级
phpunit
版本与您的php 8.1.7
(在phpunit版本9或8 之间选择,根据官方文档)或将PHP版本降级到可与phpunit 6。 。
就是这样 !
You have to upgrade your
phpunit
version to correspond with yourphp 8.1.7
(choose between phpunit version 9 or 8, according to the official documentation) or downgrade your php version to works withphpunit 6.*
.That's it !