【问题标题】:The package is not available in a stable-enough version该软件包在足够稳定的版本中不可用
【发布时间】:2014-11-29 21:25:47
【问题描述】:

以下情况:

  • 应用程序在开发版本中需要andig/dbcopycomposer require andig/dbcopy:dev-master
  • andig/dbcopy 在开发版本中需要symfony/console(由于 2.5 中的错误):

    "require": {
        "doctrine/dbal": "2.4.*",
        "symfony/console": "2.6.*@dev"
    },
    

现在,当使用composer requireandig/dbcopy 添加到应用程序时,作曲家抱怨稳定性:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for andig/dbcopy dev-master -> satisfiable by andig/dbcopy[dev-master].
    - andig/dbcopy dev-master requires symfony/console 2.6.*@dev -> no matching package found.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

没有定义minimum-stability 设置,该应用已经依赖于dev-master 包。

我已经阅读了https://groups.google.com/forum/#!topic/composer-dev/_g3ASeIFlrc/discussion,但我仍然对为什么 composer 安装失败感到困惑

  • 所有稳定性设置均已明确定义并
  • 应用程序本身已经对“dev-master”有另一个依赖项了?

【问题讨论】:

    标签: symfony composer-php


    【解决方案1】:

    简单地说:

    "symfony/console": "2.6.*@dev"
    

    在您的主要 composer.json 中。您必须直接覆盖稳定性要求。

    【讨论】:

    • 优秀。比在应用上添加最低稳定性要好得多!
    猜你喜欢
    • 2014-05-29
    • 2016-01-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-07-21
    • 2013-08-12
    • 1970-01-01
    • 2011-02-14
    相关资源
    最近更新 更多