php - “安装失败,正在将 ./composer.json 还原为原始内容”怎么办?尝试通过作曲家在 laravel 上安装 Ignition 时?
问题描述
我正在尝试通过作曲家在 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 和 facade/ignition 1.0-dev,因为点火需要 ^2.4 版本的 whoops 所以删除你手动安装的 whoops 版本并让点火安装正确的版本本身在包的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
推荐阅读
- javascript - Mongodb:如何将函数链接在一起并获得结果?
- facebook - 在 Flutter 应用中,有没有办法将图像和文本分享到 Facebook 群组?
- c - 为什么这段代码用 clang 而不是 gcc 编译?我正在学习 C 中的不透明结构
- jasper-reports - 如何根据 SQL 中的分组数据在 jasper 报告中重复表格
- google-sheets - 检查行中的值是否存在于同一行的其他列中
- python - 为什么 sklearn cross_validate() 改装?
- qt - QML - GridLayout - 无法使用它来居中页面
- symfony - 未找到 ID id(45) 的“App\Entity\Slider”类型实体
- python - Plotly 的锥体颜色问题
- html - 按需显示图像