項目是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
現(xiàn)在我需要安裝alibabacloud/esa-20240910 2.26.2
發(fā)現(xiàn)這個包依賴和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屬性來解決.但還是沒看懂
阿里云sdk是設(shè)計的最爛的sdk, 有alibabacloud 還有oss的sdk 等等各種模塊,各種版本 爛七八糟. 如果只用簡單的功能,用ai寫幾個接口調(diào)用的代碼吧,別用sdk了.