作曲家 + 火箭手 + ZF2- 由于需求冲突,无法安装火箭手



有人可以告诉我如何解决这个问题吗?

Rocketeer 在空目录下安装得很好,但不能与我现有的项目一起安装,不知道为什么。

安装需要什么?

 - Installation request for symfony/console == 2.6.6.0 -> satisfiable by symfony/console[v2.6.6].

作曲家.json

{
    "name": "zendframework/skeleton-application",
    "description": "Skeleton Application for ZF2",
    "license": "BSD-3-Clause",
    "keywords": [
        "framework",
        "zf2"
    ],
    "homepage": "http://framework.zend.com/",
    "require": {
        "php": ">=5.3.3",
        "zendframework/zendframework": "~2.3",
        "doctrine/doctrine-module": "dev-master",
        "doctrine/doctrine-orm-module": "dev-master",
        "zendframework/zend-developer-tools": "dev-master",
        "mandrill/mandrill": "1.0.*"
    }
}

命令

composer require anahkiasen/rocketeer

输出

Using version ^2.2 for anahkiasen/rocketeer
./composer.json has been updated
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 anahkiasen/rocketeer ^2.2 -> satisfiable by anahkiasen/rocketeer[2.2.0].
    - Conclusion: remove symfony/console v2.6.6
    - Conclusion: don't install symfony/console v2.6.6
    - anahkiasen/rocketeer 2.2.0 requires illuminate/console ~4.2 -> satisfiable by illuminate/console[v4.2.1, v4.2.12, v4.2.16, v4.2.17, v4.2.2, v4.2.3, v4.2.4, v4.2.5, v4.2.6, v4.2.7, v4.2.8, v4.2.9].
    - illuminate/console v4.2.1 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/console v4.2.12 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/console v4.2.16 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/console v4.2.17 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/console v4.2.2 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/console v4.2.3 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/console v4.2.4 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/console v4.2.5 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/console v4.2.6 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/console v4.2.7 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/console v4.2.8 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - illuminate/console v4.2.9 requires symfony/console 2.5.* -> satisfiable by symfony/console[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9].
    - Can only install one of: symfony/console[v2.5.0, v2.6.6].
    - Can only install one of: symfony/console[v2.5.1, v2.6.6].
    - Can only install one of: symfony/console[v2.5.10, v2.6.6].
    - Can only install one of: symfony/console[v2.5.11, v2.6.6].
    - Can only install one of: symfony/console[v2.5.12, v2.6.6].
    - Can only install one of: symfony/console[v2.5.2, v2.6.6].
    - Can only install one of: symfony/console[v2.5.3, v2.6.6].
    - Can only install one of: symfony/console[v2.5.4, v2.6.6].
    - Can only install one of: symfony/console[v2.5.5, v2.6.6].
    - Can only install one of: symfony/console[v2.5.6, v2.6.6].
    - Can only install one of: symfony/console[v2.5.7, v2.6.6].
    - Can only install one of: symfony/console[v2.5.8, v2.6.6].
    - Can only install one of: symfony/console[v2.5.9, v2.6.6].
    - Installation request for symfony/console == 2.6.6.0 -> satisfiable by symfony/console[v2.6.6].

Installation failed, reverting ./composer.json to its original content.

为什么不安装?

Zend Skeleton 安装的依赖项在 2.6.6 版本中使用 symfony/console。

"

anahkiasen/rocketeer"在~4.2版本中需要"illuminate/console",而2.5.*版本本身需要"symfony/console"。

Composer 无法安装新软件包,因为已安装的 symfony/console 版本 2.6.6 将被保留,但与新软件包的组件要求不兼容(2.5.* 不允许版本 2.6.6)。

您可以尝试手动添加新包,然后运行 composer update 。如果框架包碰巧在2.5版本中也允许symfony/console,这将解析为一组可安装的包。

相关内容

  • 没有找到相关文章

最新更新