【发布时间】:2015-12-03 04:00:21
【问题描述】:
运行这个composer require intervention/image 会抛出这个错误:
Using version ^2.3 for intervention/image
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: don't install intervention/image 2.3.1
- Conclusion: don't install intervention/image 2.3.2
- Installation request for intervention/image ^2.3 -> satisfiable by intervention/image[2.3.0, 2.3.1, 2.3.2].
- intervention/image 2.3.0 requires guzzlehttp/psr7 ~1.1 -> satisfiable by guzzlehttp/psr7[1.1.0, 1.2.0].
- guzzlehttp/psr7 1.1.0 requires psr/http-message ~1.0 -> satisfiable by psr/http-message[1.0].
- guzzlehttp/psr7 1.2.0 requires psr/http-message ~1.0 -> satisfiable by psr/http-message[1.0].
- Conclusion: don't install psr/http-message 1.0
Installation failed, reverting ./composer.json to its original content.
所以它是由 Guzzle 引起的(我使用的是"guzzlehttp/guzzle": "~5.3")。但我不能(或不想)将 guzzle 更新到 6.0,因为它不向后兼容,所以我必须移动很多代码。我可以做点什么吗,比如把戏,还是我必须更新guzzlehttp/guzzle 或intervention/image?
【问题讨论】:
-
您的依赖项是否在您的主应用程序之上使用 Guzzle?如果他们指定了两个不同版本的 Guzzle,您可能会遇到此问题。
标签: php composer-php guzzle