symfony composer update"不安装symfony / symfony"

时间:2017-07-04 07:07:43

标签: php symfony composer-php

当我运行'composer.phar update'时,我收到了大量的消息 在我的Centos 6.4 / PHP 5.5.36服务器上 从:

开始
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 symfony/symfony v3.0.9
- Conclusion: don't install symfony/symfony v3.0.8
- Conclusion: don't install symfony/symfony v3.0.7
- Conclusion: don't install symfony/symfony v3.0.6
- Conclusion: don't install symfony/symfony v3.0.5
- Conclusion: don't install symfony/symfony v3.0.4
- Conclusion: don't install symfony/symfony v3.0.3
- Conclusion: don't install symfony/symfony v3.0.2
- Conclusion: don't install symfony/symfony v3.0.1
- phpunit/phpunit 4.0.0 requires symfony/yaml ~2.0 -> satisfiable by symfony/yaml[2.0.4, 2.0.5, 2.0.6, 2.0.7, v2.0.10, v2.0.12, v2.0.13, v2.0.14, v2.0.15, v2.0.16, v2.0.17, v2.0.18, v2.0.19, v2.0.20, v2.0.21, v2.0.22, v2.0.23, v2.0.24, v2.0.25, v2.0.9, v2.1.0, v2.1.1, v2.1.10, v2.1.11, v2.1.12, v2.1.13, v2.1.2, v2.1.3, v2.1.4, v2.1.5, v2.1.6, v2.1.7, v2.1.8, v2.1.9, v2.2.0, v2.2.1, v2.2.10, v2.2.11, v2.2.2, v2.2.3, v2.2.4, v2.2.5, v2.2.6, v2.2.7, v2.2.8, v2.2.9, v2.

http://pastebin.centos.org/119091/

composer.json是: http://pastebin.centos.org/119096/

2 个答案:

答案 0 :(得分:1)

这里有一个提示:

- phpunit/phpunit 4.0.0 requires symfony/yaml ~2.0 

您在版本3.0.*中使用Symfony,在同一版本中需要symfony/yaml个包。

同时您在版本4.0.*中使用PHPUnit,但需要symfony/yaml,但版本为~2.0(这意味着&gt; = 2.0.0和<3.0} 0.0)。

所以你在这里发生冲突。

我建议将PHPUnit软件包更新为4.8版本,版本symfony/yaml需要~2.1|~3.0,与Symfony 3兼容。

答案 1 :(得分:0)

更新作曲家,它将解决问题

composer global update