0

我尝试使用composer安装zfcUser,成功安装了ZfcBase和ZfcAdmin,但zfcUser失败了?

作曲家.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.2.*",
            "zf-commons/zfc-base": "dev-master",
            "zf-commons/zfc-admin": "dev-master",
            "zf-commons/zfc-user": "~0.1.2"
        }
    }

作曲家的更新结果:

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
    - Conclusion: don't install zf-commons/zfc-base v0.1.2
    - Conclusion: remove zendframework/zendframework 2.2.4
    - Conclusion: don't install zendframework/zendframework 2.2.4
    - Conclusion: don't install zendframework/zendframework 2.2.3
    - Installation request for zf-commons/zfc-user ~0.1.2 -> satisfiable by zf-commons/zfc-user[0.1.2].
    - Conclusion: don't install zendframework/zendframework 2.2.2
    - Installation request for zf-commons/zfc-base dev-master -> satisfiable by zf-commons/zfc-base[dev-master].
    - Conclusion: don't install zendframework/zendframework 2.2.1
    - zf-commons/zfc-user 0.1.2 requires zf-commons/zfc-base 0.* -> satisfiable by zf-commons/zfc-base[0.0.1, 0.1.0, 0.1.1, v0.1.2].
    - zf-commons/zfc-base 0.0.1 requires zendframework/zendframework 2.0.* -> satisfiable by zendframework/zendframework[2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6, 2.0.7, 2.0.8].
    - zf-commons/zfc-base 0.1.0 requires zendframework/zendframework 2.1.* -> satisfiable by zendframework/zendframework[2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.1.5].
    - zf-commons/zfc-base 0.1.1 requires zendframework/zend-stdlib 2.1.* -> satisfiable by zendframework/zendframework[2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.1.5], zendframework/zend-stdlib[2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.1.5].
    - Can only install one of: zendframework/zendframework[2.2.0, 2.0.0].
    - Can only install one of: zendframework/zendframework[2.2.0, 2.0.1].
    - Can only install one of: zendframework/zendframework[2.2.0, 2.0.2].
    - Can only install one of: zendframework/zendframework[2.2.0, 2.0.3].
    - Can only install one of: zendframework/zendframework[2.2.0, 2.0.4].
    - Can only install one of: zendframework/zendframework[2.2.0, 2.0.5].
    - Can only install one of: zendframework/zendframework[2.2.0, 2.0.6].
    - Can only install one of: zendframework/zendframework[2.2.0, 2.0.7].
    - Can only install one of: zendframework/zendframework[2.2.0, 2.0.8].
    - Can only install one of: zendframework/zendframework[2.2.0, 2.1.0].
    - Can only install one of: zendframework/zendframework[2.2.0, 2.1.1].
    - Can only install one of: zendframework/zendframework[2.2.0, 2.1.2].
    - Can only install one of: zendframework/zendframework[2.2.0, 2.1.3].
    - Can only install one of: zendframework/zendframework[2.2.0, 2.1.4].
    - Can only install one of: zendframework/zendframework[2.2.0, 2.1.5].
    - don't install zendframework/zend-stdlib 2.1.0|don't install zendframework/zendframework 2.2.0
    - don't install zendframework/zend-stdlib 2.1.1|don't install zendframework/zendframework 2.2.0
    - don't install zendframework/zend-stdlib 2.1.2|don't install zendframework/zendframework 2.2.0
    - don't install zendframework/zend-stdlib 2.1.3|don't install zendframework/zendframework 2.2.0
    - don't install zendframework/zend-stdlib 2.1.4|don't install zendframework/zendframework 2.2.0
    - don't install zendframework/zend-stdlib 2.1.5|don't install zendframework/zendframework 2.2.0
    - Installation request for zendframework/zendframework 2.2.* -> satisfiable by zendframework/zendframework[2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.2.4].
4

1 回答 1

0

您明确要求 Zend Framework 版本2.2.*,但您还使用的组件需要版本2.1.*- 这永远不会工作。

要么让 Zfc 组件升级他们的需求,要么使用较旧的 Zend 框架。尝试包括"zendframework/zendframework" : "*"作为首发,看看会发生什么。

于 2013-09-24T19:19:50.417 回答