composer阿里源,创建laravel项目失败!
1. 运行环境#
windows
1). 当前使用的 Laravel 版本?#
10.X
2). 当前使用的 php/php-fpm 版本?#
PHP 版本:
8.1
2. 错误详情#
$ composer create-project laravel/laravel faceabyss-poetry
Creating a "laravel/laravel" project at "./faceabyss-poetry"
Installing laravel/laravel (v10.2.6)
- Installing laravel/laravel (v10.2.6): Extracting archive
Created project in G:\www\faceabyss-poetry
> @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
- phpunit/phpunit[10.1.0, ..., 10.3.2] 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.
- Root composer.json requires phpunit/phpunit ^10.1 -> satisfiable by phpunit/phpunit[10.1.0, ..., 10.3.2].
进目录 update 会得到相同的错误
已清理过 composer 缓存!
如何解决
推荐文章: