我正在Laravel项目中安装一个软件包。
该包具有以下依赖项:
"require": {
"illuminate/database": "^5.6",
"tightenco/collect": "^5.6"
}
如果我在一个新的作曲家项目中安装该软件包,它可以完美运行。
这是我得到的错误。
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: don't install laravel/framework v5.5.39
- Conclusion: don't install laravel/framework v5.5.38
- Conclusion: don't install laravel/framework v5.5.37
- Conclusion: don't install laravel/framework v5.5.36
- Conclusion: don't install laravel/framework v5.5.35
- Conclusion: remove laravel/framework v5.5.34
- Conclusion: don't install laravel/framework v5.5.34
- Conclusion: don't install laravel/framework v5.5.33
- Conclusion: don't install laravel/framework v5.5.32
- Conclusion: don't install laravel/framework v5.5.31
- Conclusion: don't install laravel/framework v5.5.30
- Conclusion: don't install laravel/framework v5.5.29
- Conclusion: don't install laravel/framework v5.5.28
- Conclusion: don't install laravel/framework v5.5.27
- Conclusion: don't install laravel/framework v5.5.26
- Conclusion: don't install laravel/framework v5.5.25
- Conclusion: don't install laravel/framework v5.5.24
- Conclusion: don't install laravel/framework v5.5.23
- Conclusion: don't install laravel/framework v5.5.22
- Conclusion: don't install laravel/framework v5.5.21
- Conclusion: don't install laravel/framework v5.5.20
- Conclusion: don't install laravel/framework v5.5.19
- Conclusion: don't install laravel/framework v5.5.18
- Conclusion: don't install laravel/framework v5.5.17
- Conclusion: don't install laravel/framework v5.5.16
- Conclusion: don't install laravel/framework v5.5.15
- Conclusion: don't install laravel/framework v5.5.14
- Conclusion: don't install laravel/framework v5.5.13
- Conclusion: don't install laravel/framework v5.5.12
- Conclusion: don't install laravel/framework v5.5.11
- Conclusion: don't install laravel/framework v5.5.10
- Conclusion: don't install laravel/framework v5.5.9
- Conclusion: don't install laravel/framework v5.5.8
- Conclusion: don't install laravel/framework v5.5.7
- Conclusion: don't install laravel/framework v5.5.6
- Conclusion: don't install laravel/framework v5.5.5
- Conclusion: don't install laravel/framework v5.5.4
- Conclusion: don't install laravel/framework v5.5.3
- Installation request for avifatal/sql-schema-diff dev-master -> satisfiable by avifatal/sql-schema-diff[dev-master].
- Conclusion: don't install laravel/framework v5.5.2
- Conclusion: don't install laravel/framework v5.5.1
- avifatal/sql-schema-diff dev-master requires illuminate/database ^5.6 -> satisfiable by illuminate/database[v5.6.0, v5.6.1, v5.6.10, v5.6.11, v5.6.2, v5.6.3, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9].
- don't install illuminate/database v5.6.0|don't install laravel/framework v5.5.0
- don't install illuminate/database v5.6.1|don't install laravel/framework v5.5.0
- don't install illuminate/database v5.6.10|don't install laravel/framework v5.5.0
- don't install illuminate/database v5.6.11|don't install laravel/framework v5.5.0
- don't install illuminate/database v5.6.2|don't install laravel/framework v5.5.0
- don't install illuminate/database v5.6.3|don't install laravel/framework v5.5.0
- don't install illuminate/database v5.6.4|don't install laravel/framework v5.5.0
- don't install illuminate/database v5.6.5|don't install laravel/framework v5.5.0
- don't install illuminate/database v5.6.6|don't install laravel/framework v5.5.0
- don't install illuminate/database v5.6.7|don't install laravel/framework v5.5.0
- don't install illuminate/database v5.6.8|don't install laravel/framework v5.5.0
- don't install illuminate/database v5.6.9|don't install laravel/framework v5.5.0
- Installation request for laravel/framework 5.5.* -> satisfiable by laravel/framework[v5.5.0, v5.5.1, v5.5.10, v5.5.11, v5.5.12, v5.5.13, v5.5.14, v5.5.15, v5.5.16, v5.5.17, v5.5.18, v5.5.19, v5.5.2, v5.5.20, v5.5.21, v5.5.22, v5.5.23, v5.5.24, v5.5.25, v5.5.26, v5.5.27, v5.5.28, v5.5.29, v5.5.3, v5.5.30, v5.5.31, v5.5.32, v5.5.33, v5.5.34, v5.5.35, v5.5.36, v5.5.37, v5.5.38, v5.5.39, v5.5.4, v5.5.5, v5.5.6, v5.5.7, v5.5.8, v5.5.9].
您尝试添加的软件包具有当前版本的 laravel 不支持的依赖项,因此您需要升级 laravel 框架版本才能安装该软件包。
只需在 composer.json 文件的必需部分中设置"laravel/framework":"5.6.*",然后运行 composer 更新。