but these conflict with your requirements or minimum-stability

后端 未结 6 891
梦如初夏
梦如初夏 2020-12-14 00:11

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

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-14 00:52

    You should never manually edit the composer.lock file - it is an automatically generated file.

    It looks like you've shown the composer.json file of the package you're trying to require rather than your own project's composer.json. The prefer-stable and minimum-stability properties should be added to your project root's composer.json file:

    {
      "name": "xFlare/slack-bot",
      "description": "xFlare's Slack bot project",
      "authors": [
        {
          "name": "xFlare"
        }
      ],
      "minimum-stability": "dev",
      "prefer-stable": true,
      "require": {
        "php": ">=5.5",
        "coderstephen/slack-client": "^0.3.0"
      }
    }
    

提交回复
热议问题