[英]illuminate/bus packages were not loaded, likely because it conflicts with another require
Lavavel & PHP versions: Lavavel 和 PHP 版本:
Laravel: 7
PHP: 7.4.30
I am trying to install pbmedia/laravel-ffmpeg
package using composer like so:我正在尝试使用 composer 安装
pbmedia/laravel-ffmpeg
package,如下所示:
composer require pbmedia/laravel-ffmpeg
On the first try the error message was this:在第一次尝试时,错误消息是这样的:
Problem 1
- pbmedia/laravel-ffmpeg[7.8.0, ..., 7.x-dev] require league/flysystem ^1.1.4 -> found league/flysystem[1.1.4, ..., 1.x-dev] but the package is fixed to 1.0.69 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
So I tried upgrading league/flysystem:所以我尝试升级联赛/飞行系统:
composer update league/flysystem
But after trying to install pbmedia/laravel-ffmpeg
the error message changed to this:但是在尝试安装
pbmedia/laravel-ffmpeg
后,错误消息变为:
Problem 1
- pbmedia/laravel-ffmpeg[7.8.0, ..., 7.x-dev] require illuminate/bus ^8.67 -> found illuminate/bus[v8.67.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require.
How do I fix this error?如何修复此错误? I tried installing
illuminate/bus
:我尝试安装
illuminate/bus
:
composer require illuminate/bus ^8.67
But it gave:但它给出了:
Root composer.json requires illuminate/bus ^8.67, found illuminate/bus[v8.67.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require.
After running why-not
:运行后
why-not
:
% composer why-not illuminate/bus ^8.67
andrey-helldar/laravel-app v1.0.1 requires illuminate/console (^6.0|^7.0)
andrey-helldar/laravel-app v1.0.1 requires illuminate/filesystem (^6.0|^7.0)
andrey-helldar/laravel-app v1.0.1 requires illuminate/support (^6.0|^7.0)
kreait/laravel-firebase 2.2.0 requires illuminate/contracts (^5.8|^6.0|^7.0)
kreait/laravel-firebase 2.2.0 requires illuminate/support (^5.8|^6.0|^7.0)
laravel/socialite v4.4.1 requires illuminate/http (~5.7.0|~5.8.0|^6.0|^7.0)
laravel/socialite v4.4.1 requires illuminate/support (~5.7.0|~5.8.0|^6.0|^7.0)
illuminate/bus v8.83.24 requires illuminate/contracts (^8.0)
herazika/server dev-master requires laravel/framework (^7.0)
illuminate/bus v8.83.24 requires illuminate/pipeline (^8.0)
illuminate/bus v8.83.24 requires illuminate/support (^8.0)
I am guessing composer update
will solve this issue.我猜
composer update
会解决这个问题。
I will update this asap (I currently cannot run composer update
).我会尽快更新这个(我目前无法运行
composer update
)。
Run the following command to find out why you can not install a certain package:运行以下命令,查看某个package无法安装的原因:
composer why-not <package> <version>
In your case:在你的情况下:
composer why-not illuminate/bus ^8.67
As you can see from the why-not
result output, many of the packages you currently use are not ready for Laravel v8, like andrey-helldar/laravel-app
(which, in the currently used version v1.0.1, is three years old!) or herazika/server
(which isn't even avaliable on Packagist).从
why-not
结果 output 中可以看出,您当前使用的许多软件包还没有为 Laravel v8 做好准备,例如andrey-helldar/laravel-app
(在当前使用的版本 v1.0.1 中,已经使用了三年) !)或herazika/server
(Packagist上甚至不可用)。 On the other hand, illuminate/bus ^8.67
explicitly requires Laravel v8另一方面,Illumination
illuminate/bus ^8.67
明确要求 Laravel v8
Installing the package using composer require pbmedia/laravel-ffmpeg "7.5.*"
could help.使用
composer require pbmedia/laravel-ffmpeg "7.5.*"
安装 package 可能会有所帮助。 That's one of the versions that is still compatible with Laravel v7.这是仍然与 Laravel v7 兼容的版本之一。 Otherwise, try to update your packages first - some of them are way too old to be compatible with any new package you want to use
否则,请先尝试更新您的软件包 - 其中一些太旧而无法与您要使用的任何新 package 兼容
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.