提问前请务必仔细阅读 如何排查故障 和 常见问题。
问题描述:
在安装aws s3时报错
报错内容:
./composer.json has been updated
Running composer update league/flysystem-aws-s3-v3
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- league/flysystem-aws-s3-v3[1.0.26, …, 1.0.30] require aws/aws-sdk-php 3.20.0 -> satisfiable by aws/aws-sdk-php[3.20.0, …, 3.275.6].
- league/flysystem-aws-s3-v3[1.0.1, …, 1.0.25] require aws/aws-sdk-php 3.0.0 -> satisfiable by aws/aws-sdk-php[3.0.0, …, 3.275.6].
- league/flysystem-aws-s3-v3 1.0.0 requires aws/aws-sdk-php 3.@dev -> satisfiable by aws/aws-sdk-php[3.0.0, …, 3.275.6].
- aws/aws-sdk-php[3.0.1, …, 3.3.4] require guzzlehttp/psr7 1.0 -> found guzzlehttp/psr7[1.0.0, …, 1.9.1] but the package is fixed to 2.5.0 (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.
- aws/aws-sdk-php[3.0.0, …, 3.18.28] require guzzlehttp/guzzle 5.3|6.0.1|6.1 -> found guzzlehttp/guzzle[5.3.0, …, 5.3.4, 6.0.1, …, 6.5.8] but the package is fixed to 7.7.0 (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.
- aws/aws-sdk-php 3.18.29 requires guzzlehttp/guzzle 5.3.1|6.2.1 -> found guzzlehttp/guzzle[5.3.1, 5.3.2, 5.3.3, 5.3.4, 6.2.1, 6.2.2, 6.2.3] but the package is fixed to 7.7.0 (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.
- aws/aws-sdk-php[3.18.30, …, 3.69.10] require guzzlehttp/guzzle 5.3.1|6.2.1 -> found guzzlehttp/guzzle[5.3.1, 5.3.2, 5.3.3, 5.3.4, 6.2.1, …, 6.5.8] but the package is fixed to 7.7.0 (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.
- aws/aws-sdk-php[3.69.11, …, 3.130.3] require guzzlehttp/guzzle 5.3.3|6.2.1 -> found guzzlehttp/guzzle[5.3.3, 5.3.4, 6.2.1, …, 6.5.8] but the package is fixed to 7.7.0 (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.
- aws/aws-sdk-php[3.131.0, …, 3.173.19] require guzzlehttp/psr7 1.4.1 -> found guzzlehttp/psr7[1.4.1, …, 1.9.1] but the package is fixed to 2.5.0 (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.
- aws/aws-sdk-php[3.173.20, …, 3.198.8] require guzzlehttp/psr7 1.7.0 -> found guzzlehttp/psr7[1.7.0, …, 1.9.1] but the package is fixed to 2.5.0 (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.
- aws/aws-sdk-php[3.199.0, …, 3.275.6] require guzzlehttp/promises 1.4.0 -> found guzzlehttp/promises[1.4.0, …, 1.5.3] but the package is fixed to 2.0.0 (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 1. -> satisfiable by league/flysystem-aws-s3-v3[1.0.0, …, 1.0.30].
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.lock 并更新依赖