我需要删除软件包http-interop/http-middleware
并用http-interop/http-server-middleware
替换。
这不是我的composer.json
中的定义软件包,而是我可以从zendframework/zendframework
看到的词根。
无论如何,当我尝试运行composer remove http-interop/http-middleware
时,它不会删除包裹。然后,我在尝试运行composer require http-interop/http-server-middleware
Problem 1
- Conclusion: don't install http-interop/http-server-middleware 1.1.1
- don't install http-interop/http-server-middleware 1.1.0|remove http-interop/http-middleware 0.2.0
- don't install http-interop/http-server-middleware 1.1.0|don't install http-interop/http-middleware 0.2.0
- don't install http-interop/http-server-middleware 1.1.0|don't install http-interop/http-middleware 0.2.0
- Installation request for http-interop/http-server-middleware ^1.1 -> satisfiable by http-interop/http-server-middleware[1.1.0, 1.1.1].
- Installation request for http-interop/http-middleware (locked at 0.2.0) -> satisfiable by http-interop/http-middleware[0.2.0].
我真的不知道该怎么办。
如果这是另一个软件包要求的软件包,则不能在不删除其他软件包的情况下将其删除。在您的情况下:您必须首先摆脱zendframework/zendframework
,但这肯定不是您想要的。
根据https://packagist.org/packages/http-interop/http-middleware/deppentents?page=13,依赖关系来自ZendFramework中的多个软件包。他们直接需要该软件包的^0.4.1
,并且http-interop/http-server-middleware
包含一个替换部分。因此,可能您可以通过添加 http-interop/http-server-middleware
首先使其工作,然后删除http-interop/http-middleware
?