我尝试安装Laravel Breeze,但它给了我这个错误:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/breeze[v1.19.0, ..., v1.19.2] conflict with laravel/framework <9.37.0.
- laravel/breeze[v1.20.0, ..., 1.x-dev] require php ^8.1.0 -> your php version (8.0.12) does not satisfy that requirement.
- laravel/framework is locked to version v9.22.1 and an update of this package was not requested.
- Root composer.json requires laravel/breeze ^1.19 -> satisfiable by laravel/breeze[v1.19.0, ..., 1.x-dev].
You can also try re-running composer require with an explicit version constraint, e.g. "composer require laravel/breeze:*" to figure out if any version is installable, or "composer require laravel/breeze:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
我想安装laravel微风
2条答案
按热度按时间ttvkxqim1#
你可以在你的错误中看到,你要安装的laravel/breeze的版本与你的php版本不匹配,并且与你的laravel框架冲突。试着按照错误建议去做:
composer require laravel/breeze:*
如果不起作用,请尝试升级您的php版本,例如php ^8.1.0
umuewwlo2#
根据错误消息,您正在运行
PHP 8.0.2
,但您尝试安装的breeze 1.20.0
需要PHP 8.1.0
。处理此问题的最佳方法是下载并安装所需的PHP version或此breeze版本
您可以通过以下方式指定breeze版本: