Doctrine orm 无法使用ZF2的composer安装ZfcUserDoctrineORM
我刚刚安装了zend 2和doctrine 2的所有软件包。我以前是个作曲家。我成功安装了zend2、zfcUser和DoctrineORMModule 我现在正在尝试安装ZfcUserDoctrineORM(我相信它是zfcUser和学说之间的粘合剂)。我试图通过composer安装,但收到以下消息:Doctrine orm 无法使用ZF2的composer安装ZfcUserDoctrineORM,doctrine-orm,zend-framework2,composer-php,Doctrine Orm,Zend Framework2,Composer Php,我刚刚安装了zend 2和doctrine 2的所有软件包。我以前是个作曲家。我成功安装了zend2、zfcUser和DoctrineORMModule 我现在正在尝试安装ZfcUserDoctrineORM(我相信它是zfcUser和学说之间的粘合剂)。我试图通过composer安装,但收到以下消息: Your requirements could not be resolved to an installable set of packages. Problem 1 - zf-
Your requirements could not be resolved to an installable set of packages.
Problem 1
- zf-commons/zfc-user-doctrine-orm 0.1.0 requires zendframework/zendframewor k 2.1.* -> no matching package found.
- zf-commons/zfc-user-doctrine-orm 0.0.1 requires zendframework/zendframewor k 2.0.* -> no matching package found.
- zf-commons/zfc-user-doctrine-orm 0.1.1 requires zf-commons/zfc-user 0.* -> satisfiable by zf-commons/zfc-user[0.x-dev].
- zf-commons/zfc-user-doctrine-orm 0.1.2 requires zf-commons/zfc-user 0.* -> satisfiable by zf-commons/zfc-user[0.x-dev].
- zf-commons/zfc-user-doctrine-orm 0.1.3 requires zf-commons/zfc-user 0.* -> satisfiable by zf-commons/zfc-user[0.x-dev].
- Conclusion: don't install zf-commons/zfc-user 0.x-dev
- Installation request for zf-commons/zfc-user-doctrine-orm 0.* -> satisfiab le by zf-commons/zfc-user-doctrine-orm[0.0.1, 0.1.0, 0.1.1, 0.1.2, 0.1.3].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your min imum-stability setting
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> f or more details.
Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Installation failed, reverting ./composer.json to its original content.
无法将您的需求解析为一组可安装的软件包。
问题1
-zf commons/zfc用户原则orm 0.1.0需要zendframework/zendframewor k 2.1.*->未找到匹配的包。
-zf commons/zfc用户原则orm 0.0.1需要zendframework/zendframewor k 2.0.*->未找到匹配的包。
-zf commons/zfc用户原则orm 0.1.1要求zf commons/zfc用户0.*->zf commons/zfc用户可满足[0.x-dev]。
-zf commons/zfc用户原则orm 0.1.2要求zf commons/zfc用户0.*->zf commons/zfc用户可满足[0.x-dev]。
-zf commons/zfc用户原则orm 0.1.3要求zf commons/zfc用户0.*->zf commons/zfc用户可满足[0.x-dev]。
-结论:不要安装zf commons/zfc用户0.x-dev
-zf commons/zfc用户原则orm 0的安装请求。*->zf commons/zfc用户原则orm可满足[0.0.1,0.1.0,0.1.1,0.1.2,0.1.3]。
潜在原因:
-软件包名称中的输入错误
-根据您的最小最小最小稳定性设置,该软件包没有足够稳定的版本
请参阅f或更多详细信息。
阅读了解更多常见问题。
安装失败,将./composer.json还原为其原始内容。
在出现上述错误之前,系统询问我被问到什么版本约束,我回答:0.我通过交换解决了问题
"zf-commons/zfc-user": "dev-master",
与
在我的composer.json中
这是
因为Composer使用的是您的系统中存在的旧版本
Composer缓存,而不是下载新版本。你看得出
它使用的是作曲家所指的旧版本
zf commons/zfc用户0.0.1,但当前版本为0.1.2。旧的
zf commons/zfc用户的版本依赖于旧版本的
zendframework/与其他模块冲突的zendframework
需要更新版本的
我找到了答案
"zf-commons/zfc-user": "~0.1.2",