laravel/horizon包冲突问题
laravel框架为5.5
composer安装报错如下:
./composer.json has been updated
Running composer update laravel/horizon
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/horizon[v5.7.0, ..., v5.7.3] require illuminate/contracts ^8.17 -> found illuminate/contracts[v8.17.0, ..., v8.34.0] but these were not loaded, likely because it conflicts with another require.
- Root composer.json requires laravel/horizon ^5.7 -> satisfiable by laravel/horizon[v5.7.0, v5.7.1, v5.7.2, v5.7.3].
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
composer.lock 找到2处有关的限制
"illuminate/contracts": "^5.0|^6.0|^7.0|^8.0|^9.0",
"illuminate/contracts": "self.version",
我想应该是第二处有冲突吧,horizon默认安装的5.7我应该如何抉择我需要的对应版本。
装个
2
版本的试试吧,最新版是给 Laravel8 用的包链接