在运行"composer install“命令时,我遇到了以下问题:
$ composer install
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
- Installation request for react/http dev-master#cd15204bd15d106d7832c680e4fb0ca0ce2f5e30 -> satisfiable by react/http[dev-master].
- react/http dev-master requires react/socket ^1.0 || ^0.8.3 -> satisfiable by react/socket[v0.8.3, v0.8.4, v0.8.5, v0.8.6] but these conflict with your requirements or minimum-stability.
Problem 2
- react/http dev-master requires react/socket ^1.0 || ^0.8.3 -> satisfiable by react/socket[v0.8.3, v0.8.4, v0.8.5, v0.8.6] but these conflict with your requirements or minimum-stability.
- php-pm/php-pm dev-master requires react/http dev-master#cd15204bd15d106d7832c680e4fb0ca0ce2f5e30 -> satisfiable by react/http[dev-master].
- Installation request for php-pm/php-pm dev-master -> satisfiable by php-pm/php-pm[dev-master].系统:
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 9.1 (stretch)
Release: 9.1
Codename: stretch在座有人知道如何解决这些问题吗?感谢您的帮助。
发布于 2017-11-20 05:56:49
尝试通过以下方式调整composer.json
minimum-stability to minimum-stability to prefer-stable to true (如果有稳定的包,仍然可以引入)例如:
{
"minimum-stability": "dev",
"prefer-stable": true
}然后运行:
$ composer require react/http:dev-master --update-with-dependencies有关参考,请参阅:
https://stackoverflow.com/questions/47377457
复制相似问题