但这些与您的要求或最低稳定性相冲突

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-stabilityprefer-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
}

这篇关于但这些与您的要求或最低稳定性相冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Convert JSON integers and floats to strings(将JSON整数和浮点数转换为字符串)
in php how do I use preg replace to turn a url into a tinyurl(在php中,如何使用preg替换将URL转换为TinyURL)
all day appointment for ics calendar file wont work(ICS日历文件的全天约会不起作用)
trim function is giving unexpected values php(Trim函数提供了意外的值php)
Basic PDO connection to MySQL(到MySQL的基本PDO连接)
PHP number_format returns 1.00(Php number_Format返回1.00)