"Installation failed, reverting ./composer.json to its original content."时,我该怎么办 尝试通过作曲家在 laravel 上安



我正在尝试通过作曲家在拉拉维尔安装点火装置

composer require --dev facade/ignition

但它一直给我这个错误消息:

Using version ^1.6 for facade/ignition
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for facade/ignition ^1.6 -> satisfiable by facade/ignition[1.6.0].
- Conclusion: don't install filp/whoops 2.5.0
- Can only install one of: filp/whoops[2.4.0, 2.1.13].
- Can only install one of: filp/whoops[2.4.0, 2.1.13].
- Can only install one of: filp/whoops[2.4.0, 2.1.13].
- facade/ignition 1.6.0 requires filp/whoops ^2.4 -> satisfiable by filp/whoops[2.4.0, 2.4.1, 2.5.0].
- Conclusion: don't install filp/whoops 2.4.1
- Installation request for filp/whoops (locked at 2.1.13, required as ~2.0) -> satisfiable by filp/whoops[2.1.13].

Installation failed, reverting ./composer.json to its original content.

您不能在同一Laravel应用程序上同时安装filp/whoops 2.5.0和外观/点火1.0-dev,因为ignition需要版本^2.4的whoops,因此请删除手动安装的whoops版本,并让ignition为自己安装软件包composer.json中定义的正确版本。

{
"name": "facade/ignition",
"homepage": "https://github.com/facade/ignition",
"require": {
"php": "^7.1",
"filp/whoops": "^2.4" // Here
},
}

像这样删除 filp\whoops

composer remove filp/whoops

然后安装立面/点火装置

composer require --dev facade/ignition

相关内容

  • 没有找到相关文章

最新更新