首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Composer安装失败: react/http dev-master需要react/socket

Composer安装失败: react/http dev-master需要react/socket
EN

Stack Overflow用户
提问于 2017-11-19 21:34:49
回答 1查看 232关注 0票数 0

在运行"composer install“命令时,我遇到了以下问题:

代码语言:javascript
复制
$ 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].

used composer.json

系统:

代码语言:javascript
复制
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 9.1 (stretch)
Release:        9.1
Codename:       stretch

在座有人知道如何解决这些问题吗?感谢您的帮助。

EN

回答 1

Stack Overflow用户

发布于 2017-11-20 05:56:49

尝试通过以下方式调整composer.json

  • minimum-stability to
  • minimum-stability to prefer-stable to true (如果有稳定的包,仍然可以引入)

例如:

代码语言:javascript
复制
{
    "minimum-stability": "dev",
    "prefer-stable": true
}

然后运行:

代码语言:javascript
复制
$ composer require react/http:dev-master --update-with-dependencies

有关参考,请参阅:

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47377457

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档