[英]Composer update gives error phpunit/phpunit
我最近安裝了 php (8.1.7) 和 composer (2.3.7) 和 laravel 9; 現在我在 laravel 項目上運行命令composer update
時遇到這個錯誤,我搜索了很多但找不到確切的解決方案,他們都沒有討論 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].```
您必須升級您的phpunit
版本以與您的php 8.1.7
相對應(根據官方文檔選擇 phpunit 版本 9 或 8 )或降級您的 php 版本以與phpunit 6.*
。
而已 !
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.