我在安装nao-pon/flysystem-google-drive时遇到了问题
当我运行命令时,composer需要nao-pon/flysystem-google-drive或nao-pon/flysystem-google-drive:~1.1
我得到了这样的错误:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires nao-pon/flysystem-google-drive ^1.1 -> satisfiable by nao-pon/flysystem-google-drive[1.1.0, ..., 1.1.x-dev].
- nao-pon/flysystem-google-drive[1.1.0, ..., 1.1.x-dev]
require league/flysystem ~1.0 -> found league/flysystem[1.0.0-alpha1, ..., 1.x-dev] but it conflicts with your root composer.json require (^3.0).
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades, and removals for packages currently locked to
specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require nao-pon/flysystem-google-drive:*" to figure out if any version is installable, or "composer require nao-pon/flysystem-google-drive:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.我需要做些什么来解决这个问题?谢谢!
发布于 2022-05-17 11:30:20
nao-pon/flysystem-google-drive上一次更新是在近两年前。它依赖于league/flysystem的旧版本(即: v1分支中的任意版本),但您的代码目前需要v3 of league/flysystem。如果您不想降级(因为这可能需要大量的工作),您可以使用任何其他Google适配器,比如masbug/flysystem-google-drive-ext
https://stackoverflow.com/questions/72249087
复制相似问题