laravel - 尝试安装 composer League/flysystem-aws-s3-v3 时出现错误
问题描述
当我尝试安装 composer League/flysystem-aws-s3-v3 时出现错误
我的行:composer require League/flysystem-aws-s3-v3
我使用 Laravel 8 和 php 7.3
我还测试了删除 composer.lock
有人已经修好了?
Your requirements could not be resolved to an installable set of packages.
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].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
我的 composer.json
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"require": {
"php": "^7.3",
"aws/aws-sdk-php": "^3.166",
"fideloper/proxy": "^4.2",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.0.1",
"laravel/framework": "^8.17",
"laravel/tinker": "^2.0",
"tymon/jwt-auth": "^1.0"
},
...
解决方案
我遇到了同样的问题。我试过这个,它很有帮助
composer require league/flysystem-aws-s3-v3 ~1.0
推荐阅读
- python - 如何将 tensorflow .meta .data .index 转换为 .ckpt 文件?
- javascript - 图标不显示 vue js
- dji-sdk - 有没有办法监听 dji sdk 中的纵横比变化?
- asch-development - 有签名和没有签名的交易有什么区别?
- php - 在 twig 文件中提供只读值在 symfony3.2 中返回 null
- python - 如何根据行拆分numpy数组并将这些值保存到不同的数组中
- nativescript - 带有 NativeScript 的 web3
- sql - 我想在 SQL 2017 中的多个表的变量中返回 JSON
- rxjs - 将可观察到的变成主题
- javascript - Angular 2 ng2-completer 获取选定的项目值