Composer.json更新错误

时间:2018-01-01 23:33:18

标签: php symfony composer-php

更新Compressor时遇到这样的问题。花了几个小时,但我无法解决问题。请帮帮我。

Problem 1
- Conclusion: don't install symfony/symfony v2.8.32
- Conclusion: don't install symfony/symfony v2.8.31
- Conclusion: don't install symfony/symfony v2.8.30
- Conclusion: remove symfony/symfony v2.8.29
- Conclusion: don't install symfony/symfony v2.8.29
- Conclusion: don't install symfony/symfony v2.8.28
- Conclusion: don't install symfony/symfony v2.8.27
- Conclusion: don't install symfony/symfony v2.8.26
- Conclusion: don't install symfony/symfony v2.8.25
- Conclusion: don't install symfony/symfony v2.8.24
- Conclusion: don't install symfony/symfony v2.8.23
- Conclusion: don't install symfony/symfony v2.8.22
- Conclusion: don't install symfony/symfony v2.8.21
- Conclusion: don't install symfony/symfony v2.8.20
- Conclusion: don't install symfony/symfony v2.8.19
- Conclusion: don't install symfony/symfony v2.8.18
- Conclusion: don't install symfony/symfony v2.8.17
- Conclusion: don't install symfony/symfony v2.8.16
- Conclusion: don't install symfony/symfony v2.8.15
- Conclusion: don't install symfony/symfony v2.8.14
- Conclusion: don't install symfony/symfony v2.8.13
- Conclusion: don't install symfony/symfony v2.8.12
- Conclusion: don't install symfony/symfony v2.8.11
- Conclusion: don't install symfony/symfony v2.8.10
- Conclusion: don't install symfony/symfony v2.8.9
- Conclusion: don't install symfony/symfony v2.8.8
- Conclusion: don't install symfony/symfony v2.8.7
- Conclusion: don't install symfony/symfony v2.8.6
- Conclusion: don't install symfony/symfony v2.8.5
- Conclusion: don't install symfony/symfony v2.8.4
- Conclusion: don't install symfony/symfony v2.8.3
- Conclusion: don't install symfony/symfony v2.8.2
- Conclusion: don't install symfony/symfony v2.8.1
- doctrine/doctrine-fixtures-bundle 3.0.0 requires symfony/framework-bundle 
^3.3|^4.0 -> satisfiable by symfony/framework-bundle[v3.3.0, v3.3.1, 
v3.3.10, v3.3.11, v3.3.12, v3.3.1
3, v3.3.14, v3.3.2, v3.3.3, v3.3.4, v3.3.5, v3.3.6, v3.3.7, v3.3.8, v3.3.9, 
v3.4.0, v3.4.1, v3.4.2, v4.0.0, v4.0.1, v4.0.2].
- doctrine/doctrine-fixtures-bundle 3.0.1 requires symfony/framework-bundle 
^3.3|^4.0 -> satisfiable by symfony/framework-bundle[v3.3.0, v3.3.1, 
v3.3.10, v3.3.11, v3.3.12, v3.3.1
3, v3.3.14, v3.3.2, v3.3.3, v3.3.4, v3.3.5, v3.3.6, v3.3.7, v3.3.8, v3.3.9, 
v3.4.0, v3.4.1, v3.4.2, v4.0.0, v4.0.1, v4.0.2].
- doctrine/doctrine-fixtures-bundle 3.0.2 requires symfony/framework-bundle 
^3.3|^4.0 -> satisfiable by symfony/framework-bundle[v3.3.0, v3.3.1, 
v3.3.10, v3.3.11, v3.3.12, v3.3.1
3, v3.3.14, v3.3.2, v3.3.3, v3.3.4, v3.3.5, v3.3.6, v3.3.7, v3.3.8, v3.3.9, 
v3.4.0, v3.4.1, v3.4.2, v4.0.0, v4.0.1, v4.0.2].
- symfony/framework-bundle v3.3.0 conflicts with symfony/symfony[v2.8.0].
- symfony/framework-bundle v3.3.1 conflicts with symfony/symfony[v2.8.0].
- symfony/framework-bundle v3.3.10 conflicts with symfony/symfony[v2.8.0].
- symfony/framework-bundle v3.3.11 conflicts with symfony/symfony[v2.8.0].
- symfony/framework-bundle v3.3.12 conflicts with symfony/symfony[v2.8.0].
- symfony/framework-bundle v3.3.13 conflicts with symfony/symfony[v2.8.0].
- symfony/framework-bundle v3.3.14 conflicts with symfony/symfony[v2.8.0].
- symfony/framework-bundle v3.3.2 conflicts with symfony/symfony[v2.8.0].
- symfony/framework-bundle v3.3.3 conflicts with symfony/symfony[v2.8.0].
- symfony/framework-bundle v3.3.4 conflicts with symfony/symfony[v2.8.0].
- symfony/framework-bundle v3.3.5 conflicts with symfony/symfony[v2.8.0].
- symfony/framework-bundle v3.3.6 conflicts with symfony/symfony[v2.8.0].
- symfony/framework-bundle v3.3.7 conflicts with symfony/symfony[v2.8.0].
- symfony/framework-bundle v3.3.8 conflicts with symfony/symfony[v2.8.0].
- symfony/framework-bundle v3.3.9 conflicts with symfony/symfony[v2.8.0].
- symfony/framework-bundle v3.4.0 conflicts with symfony/symfony[v2.8.0].
- symfony/framework-bundle v3.4.1 conflicts with symfony/symfony[v2.8.0].
- symfony/framework-bundle v3.4.2 conflicts with symfony/symfony[v2.8.0].
- symfony/framework-bundle v4.0.0 conflicts with symfony/symfony[v2.8.0].
- symfony/framework-bundle v4.0.1 conflicts with symfony/symfony[v2.8.0].
- symfony/framework-bundle v4.0.2 conflicts with symfony/symfony[v2.8.0].
- Installation request for symfony/symfony 2.8.* -> satisfiable by 
symfony/symfony[v2.8.0, v2.8.1, v2.8.10, v2.8.11, v2.8.12, v2.8.13, v2.8.14, 
v2.8.15, v2.8.16, v2.8.17, v2.8.18
, v2.8.19, v2.8.2, v2.8.20, v2.8.21, v2.8.22, v2.8.23, v2.8.24, v2.8.25, 
v2.8.26, v2.8.27, v2.8.28, v2.8.29, v2.8.3, v2.8.30, v2.8.31, v2.8.32, 
v2.8.4, v2.8.5, v2.8.6, v2.8.7, v2.8.8
, v2.8.9].
- Installation request for doctrine/doctrine-fixtures-bundle 3.0.* -> 
satisfiable by doctrine/doctrine-fixtures-bundle[3.0.0, 3.0.1, 3.0.2].

在开发我的项目时,我必须更新所有安装的乐队,但我不能这样做。升级和安装期间会发生此错误。我也不能安装新的捆绑包,因为这个错误不允许我这样做。

1 个答案:

答案 0 :(得分:1)

您的项目需要一个版本的doctrine-fixtures-bundle,它本身需要symfony / framework-bundle of version 3.3。*,但是这个框架包与symfony 2.8不兼容。因此,您需要升级symfony,或者更改您的composer.json以要求使用与您的symfony版本兼容的较旧版本的doctrine-fixtures-bundle。

查看可用的各种版本,以便为您的项目找到合适的版本。 2.4.1看起来可能有用 - https://packagist.org/packages/doctrine/doctrine-fixtures-bundle