but these conflict with your requirements or minimum-stability(但这些与您的要求或最低稳定性相冲突)
问题描述
我正在创建自己的 slackbot.我决定使用项目作为库来帮助我.
I am creating my own slackbot. I decided to use project as a library to help me.
https://github.com/sagebind/slack-client/issues?utf8=%E2%9C%93&q=stability
现在我需要用 composer 安装它.
Now I need to install it with composer.
所以我使用了命令:composer require coderstephen/slack-client
...我得到了错误:
Problem 1
- Installation request for coderstephen/slack-client ^0.3.0 -> satisfiable by coderstephen/slack-client[v0.3.0].
- coderstephen/slack-client v0.3.0 requires devristo/phpws dev-master -> satisfiable by devristo/phpws[dev-master] but these conflict with your requirements or minimum-stability.
好的 - 所以我决定将稳定性级别更改为开发".在我的 composer.lock
中:
Ok - So then I decided to change my stability level to "dev" in my composer.lock
:
"aliases": [],
"minimum-stability": "dev",
"stability-flags": {
"devristo/phpws": 20
},
"prefer-stable": true,
"prefer-lowest": false,
"platform": {
"php": ">=5.5"
},
"platform-dev": []
现在我已经没有什么想法了.自述文件说要在 composer.json 中执行此步骤,但不存在此类设置:
Now I'm running out of ideas on what to do. The README says to do this step in composer.json but, no such settings exist:
请注意当前版本依赖不稳定.
Please note that the current version has unstable dependencies.
为了安装这些依赖项,您可以设置最低稳定性";在您的 composer.json 中,并建议您设置prefer-stable":
In order to install those dependencies, you can set "minimum-stability" in your composer.json, and recommend that you set "prefer-stable":
我的 composer.json:
My composer.json:
{
"name": "coderstephen/slack-client",
"keywords": ["slack", "api", "realtime"],
"license": "MIT",
"description": "A better Slack client, with RTM API support",
"authors": [{
"name": "Stephen Coakley",
"email": "me@stephencoakley.com"
}],
"require": {
"php": ">=5.5",
"devristo/phpws": "dev-master",
"evenement/evenement": "2.0.*",
"guzzlehttp/guzzle": "~6.0",
"react/event-loop": "^0.4.1",
"react/promise": "^2.2"
},
"require-dev": {
"phpunit/phpunit": "~4.6",
"fzaninotto/faker": "~1.4",
"apigen/apigen": "^4.1"
},
"autoload": {
"psr-4": {
"Slack\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Slack\Tests\": "tests"
}
}
}
有人知道我可以尝试的一些解决方案吗?
Does anyone know some solutions I could try?
推荐答案
将 minimum-stability
和 prefer-stable
添加到您的 composer.json
(不是composer.lock
):
Add minimum-stability
and prefer-stable
to your composer.json
(not composer.lock
):
{
"name": "coderstephen/slack-client",
"keywords": ["slack", "api", "realtime"],
"license": "MIT",
"description": "A better Slack client, with RTM API support",
"authors": [{
"name": "Stephen Coakley",
"email": "me@stephencoakley.com"
}],
"require": {
"php": ">=5.5",
"devristo/phpws": "dev-master",
"evenement/evenement": "2.0.*",
"guzzlehttp/guzzle": "~6.0",
"react/event-loop": "^0.4.1",
"react/promise": "^2.2"
},
"require-dev": {
"phpunit/phpunit": "~4.6",
"fzaninotto/faker": "~1.4",
"apigen/apigen": "^4.1"
},
"autoload": {
"psr-4": {
"Slack\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Slack\Tests\": "tests"
}
},
"minimum-stability": "dev",
"prefer-stable": true
}
这篇关于但这些与您的要求或最低稳定性相冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:但这些与您的要求或最低稳定性相冲突
基础教程推荐
- Libpuzzle 索引数百万张图片? 2022-01-01
- mysqli_insert_id 是否有可能在高流量应用程序中返回 2021-01-01
- 如何在 PHP 中的请求之间持久化对象 2022-01-01
- 在 Woocommerce 中根据运输方式和付款方式添加费用 2021-01-01
- WooCommerce 中选定产品类别的自定义产品价格后缀 2021-01-01
- 在 PHP 中强制下载文件 - 在 Joomla 框架内 2022-01-01
- XAMPP 服务器不加载 CSS 文件 2022-01-01
- 在多维数组中查找最大值 2021-01-01
- 超薄框架REST服务两次获得输出 2022-01-01
- 通过 PHP SoapClient 请求发送原始 XML 2021-01-01