首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >找不到类‘Flysystem\Flysystem\AwsS3v3\AwsS3Adapter’

找不到类‘Flysystem\Flysystem\AwsS3v3\AwsS3Adapter’
EN

Stack Overflow用户
提问于 2020-12-14 13:17:10
回答 1查看 271关注 0票数 0

我正在尝试上传图像在ASW S3。但我得到错误类‘联盟\Flysystem\AwsS3v3\AwsS3Adapter’not found。所以我试着运行composer require league/flysystem-aws-s3-v3,但它给了我错误。错误是:

代码语言:javascript
复制
 Problem 1
- league/flysystem-aws-s3-v3[2.0.0, ..., 2.x-dev] require league/flysystem ^2.0.0 -> found league/flysystem[2.0.0-alpha.1, ..., 2.x-dev] but the package is fixed to 1.1.3 (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.
- league/flysystem-aws-s3-v3[2.0.0-alpha.1, ..., 2.0.0-alpha.2] require league/flysystem 2.0.0-alpha.1 -> found league/flysystem[2.0.0-alpha.1] but the package is fixed to 1.1.3 (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.
- league/flysystem-aws-s3-v3[2.0.0-alpha.4, ..., 2.0.0-beta.1] require league/flysystem 2.0.0-alpha.3 -> found league/flysystem[2.0.0-alpha.3] but the package is fixed to 1.1.3 (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.
- league/flysystem-aws-s3-v3[2.0.0-beta.2, ..., 2.0.0-beta.3] require league/flysystem ^2.0.0-beta.1 -> found league/flysystem[2.0.0-beta.1, ..., 2.x-dev] but the package is fixed to 1.1.3 (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.
- league/flysystem-aws-s3-v3 2.0.0-RC1 requires league/flysystem ^2.0.0-RC1 -> found league/flysystem[2.0.0-RC1, 2.0.0, 2.x-dev] but the package is fixed to 1.1.3 (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.
- Root composer.json requires league/flysystem-aws-s3-v3 ^2.0 -> satisfiable by league/flysystem-aws-s3-v3[2.0.0-alpha.1, ..., 2.x-dev].

我的PHP版本是: 7.4.11,我的Alaravel版本是7.30.0。有没有人能帮我解决这个问题?

EN

回答 1

Stack Overflow用户

发布于 2021-02-01 19:06:42

您应该尝试在终端中运行此命令

代码语言:javascript
复制
composer require league/flysystem-aws-s3-v3 ^1.0

在我上次使用Laravel 7.30.3 (PHP v7.4)的体验中,它工作得非常好。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65283957

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档