gpt4 book ai didi

laravel - 为 Laravel 8 安装 FFmpeg 包

转载 作者:行者123 更新时间:2023-12-04 23:18:46 24 4
gpt4 key购买 nike

我需要在 Laravel 中安装用于压缩视频服务器端的 FFmpeg 包,但是当我尝试通过 composer 安装这个包时出现错误。我阅读了他们的文档,但我不知道如何解决这个问题。所以请帮我解决这个问题。
错误

Your requirements could not be resolved to an installable set ofpackages.

Problem 1- Root composer.json requires pbmedia/laravel-ffmpeg ^8.0 -> satisfiable by pbmedia/laravel-ffmpeg[8.0.0].- pbmedia/laravel-ffmpeg 8.0.0 requires illuminate/contracts ^9.0 -> found illuminate/contracts[v9.0.0-beta.1, ..., 9.x-dev] but these were not loaded, likely because it conflicts with another require.

You can also try re-running composer require with an explicit versionconstraint, e.g. "composer require pbmedia/laravel-ffmpeg:*" to figureout if any version is installable, or "composer requirepbmedia/laravel-ffmpeg:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock totheir original content.

最佳答案

检查 v8 release note :

As Laravel 9 has migrated from Flysystem 1.x to 3.x, this version is not compatible with Laravel 8 or earlier.


您可以使用 v7.8.1 :
composer require pbmedia/laravel-ffmpeg "7.8.1" 

关于laravel - 为 Laravel 8 安装 FFmpeg 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71147789/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com