- phpunit/phpunit[10.0.0, ..., 10.0.12] require phpunit/php-text-template ^3.0 -> found phpunit/php-text-template[dev-main, 3.0.x-dev (alias of dev-main)] but it does not match your minimum-stability.
Problem 2
- laravel/framework[v10.0.0, ..., v10.1.5] require doctrine/inflector ^2.0.5 -> found doctrine/inflector[2.0.x-dev, 2.1.x-dev] but it does not match your minimum-stability.
您好,我在终端无法创建新的laravel10项目,php是8.1版本,但是安装laravel9就没有问题,希望老师能够指点问题所在,谢谢。
Creating a "laravel/laravel" project at "./laravel"
Installing laravel/laravel (v10.0.2)
- Installing laravel/laravel (v10.0.2): Extracting archive
Created project in /Volumes/COLORFUL/Workspace/www/laravel
> @php -r "file_exists('.env') || copy('.env.example', '.env');"
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires phpunit/phpunit ^10.0 -> satisfiable by phpunit/phpunit[10.0.0, ..., 10.0.12].
- phpunit/phpunit[10.0.0, ..., 10.0.12] require phpunit/php-text-template ^3.0 -> found phpunit/php-text-template[dev-main, 3.0.x-dev (alias of dev-main)] but it does not match your minimum-stability.
Problem 2
- laravel/framework[v10.0.0, ..., v10.1.5] require doctrine/inflector ^2.0.5 -> found doctrine/inflector[2.0.x-dev, 2.1.x-dev] but it does not match your minimum-stability.
- Root composer.json requires laravel/framework ^10.0 -> satisfiable by laravel/framework[v10.0.0, ..., v10.1.5].
是不是用的国内源
对 后来恢复默认源就好了
国内的源的问题,阿里安装不下来,换华为,华为下不下来换腾讯,总有一个可以下载
谢谢 已经搞定 就是镜像源的问题