webman/psr7依赖和alibabacloud/darabonba冲突怎么解决?

changepll

问题描述

项目是webman2.1.2的
workerman/http-client v2.2.9 requires workerman/psr7 (>=1.4.3)
workerman/psr7 v2.0.2 requires psr/http-message ~2.0
现在我需要安装alibabacloud/esa-20240910 2.26.2
发现这个包依赖和workerman/psr7冲突了.

alibabacloud/darabonba ->psr/http-message ~1.0
workerman/psr7 v2.0.2 requires psr/http-message ~2.0

./composer.json has been updated
Running composer update alibabacloud/esa-20240910 --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - alibabacloud/darabonba[v1.0.0, ..., v1.0.2] require psr/http-message ^0.11
.0|^1.0 -> found psr/http-message[0.11.0, 1.0, 1.0.1, 1.1] but these were not lo
aded, likely because it conflicts with another require.
    - alibabacloud/esa-20240910 2.26.2 requires alibabacloud/darabonba ^1.0.0 ->
 satisfiable by alibabacloud/darabonba[v1.0.0, v1.0.1, v1.0.2].
    - Root composer.json requires alibabacloud/esa-20240910 2.26.2 -> satisfiabl
e by alibabacloud/esa-20240910[2.26.2].

Installation failed, reverting ./composer.json and ./composer.lock to their orig
inal content.

这种怎么解决啊?

为此你搜索到了哪些方案及不适用的原因

搜到让使用replace属性来解决.但还是没看懂

90 1 0
1个回答

TomMilk

阿里云sdk是设计的最烂的sdk, 有alibabacloud 还有oss的sdk 等等各种模块,各种版本 烂七八糟. 如果只用简单的功能,用ai写几个接口调用的代码吧,别用sdk了.

  • tanhongbin 1天前

    阿里云的sdk的确是最烂的 对cli模式非常不友好 全是一顿 new 各种new 贼容易泄漏

  • changepll 1天前

    完了. 成吐槽大会了

🔝