Laravel:安装 Laravel Breeze 时出错

huangapple go评论58阅读模式
英文:

Laravel: Error in installing laravel breeze

问题

尝试安装Laravel Breeze时遇到以下错误:

您的要求无法解决为可安装的软件包集。

问题 1
- laravel/breeze[v1.19.0, ..., v1.19.2] 与 laravel/framework <9.37.0 冲突。
- laravel/breeze[v1.20.0, ..., 1.x-dev] 要求 php ^8.1.0 -> 您的php版本(8.0.12)不满足该要求。
- laravel/framework被锁定为版本v9.22.1,并且未请求更新此软件包。
- 根composer.json要求laravel/breeze ^1.19 -> laravel/breeze[v1.19.0, ..., 1.x-dev] 可满足该要求。

您还可以尝试使用显式版本约束重新运行composer require,例如“composer require laravel/breeze:*”以确定是否可安装任何版本,或者“composer require laravel/breeze:^2.1”如果您知道所需的版本。

安装失败,将./composer.json和./composer.lock还原为其原始内容。
英文:

i tried to install laravel breeze but it gave me this error:

  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.

I wants to install laravel breeze

答案1

得分: 0

根据错误消息,你当前运行的是 PHP 8.0.2,但你要安装的 breeze 1.20.0 需要 PHP 8.1.0

处理的最佳方法是下载并安装所需的 PHP 版本breeze 版本

你可以通过以下方式指定 breeze 版本:

composer require laravel/breeze:^1.19.0
英文:

According to the error message you have PHP 8.0.2 running but the breeze 1.20.0 you are trying to install requires PHP 8.1.0.

The best way to handle this will be to download and install the required PHP version or this breeze version

You can specify a breeze version in the following way:

composer require laravel/breeze:^1.19.0

答案2

得分: 0

你可以看到在错误信息中,你要安装的laravel/breeze版本与你的php版本不匹配,与你的laravel框架冲突。尝试按照错误建议执行:

composer require laravel/breeze:*

如果不起作用,请尝试升级你的php版本,例如php ^8.1.0。

英文:

You can see in your errors, the version of laravel/breeze that you are going to install doesn't match with your php version and conflict with your laravel framework. Try doing as the error suggest:

composer require laravel/breeze:*

If it doesn't work, try upgrading your php version, such as php ^8.1.0

huangapple
  • 本文由 发表于 2023年4月6日 18:59:44
  • 转载请务必保留本文链接:https://go.coder-hub.com/75948733.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定