我正在将Laravel5.5的应用升级到5.6。我得到了大量的结论,以至于我想不出该怎么做。在一天结束时,什么依赖导致了问题?
$ composer update --no-scripts
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/http-foundation v4.0.0
- Conclusion: don't install omnipay/common 2.3.2
- Conclusion: don't install symfony/http-foundation v4.0.8|install omnipay/common 2.3.2
- Conclusion: don't install symfony/http-foundation v4.0.2
- Conclusion: don't install symfony/http-foundation v4.0.1
- Conclusion: don't install symfony/http-foundation v4.0.7
- Conclusion: don't install symfony/http-foundation v4.0.6
- Conclusion: don't install symfony/http-foundation v4.0.5
- Conclusion: don't install symfony/http-foundation v4.0.4
- Installation request for ignited/laravel-omnipay 2.* -> satisfiable by ignited/laravel-omnipay[2.0.0, 2.1.0, 2.2.0, 2.3.0].
- laravel/framework v5.6.0 requires symfony/http-foundation ~4.0 -> satisfiable by symfony/http-foundation[v4.0.0, v4.0.1, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8].
- laravel/framework v5.6.1 requires symfony/http-foundation ~4.0 -> satisfiable by symfony/http-foundation[v4.0.0, v4.0.1, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8].
- laravel/framework v5.6.10 requires symfony/http-foundation ~4.0 -> satisfiable by symfony/http-foundation[v4.0.0, v4.0.1, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8].
- laravel/framework v5.6.11 requires symfony/http-foundation ~4.0 -> satisfiable by symfony/http-foundation[v4.0.0, v4.0.1, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8].
- laravel/framework v5.6.12 requires symfony/http-foundation ~4.0 -> satisfiable by symfony/http-foundation[v4.0.0, v4.0.1, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8].
- laravel/framework v5.6.13 requires symfony/http-foundation ~4.0 -> satisfiable by symfony/http-foundation[v4.0.0, v4.0.1, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8].
- laravel/framework v5.6.14 requires symfony/http-foundation ~4.0 -> satisfiable by symfony/http-foundation[v4.0.0, v4.0.1, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8].
- laravel/framework v5.6.2 requires symfony/http-foundation ~4.0 -> satisfiable by symfony/http-foundation[v4.0.0, v4.0.1, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8].
- laravel/framework v5.6.3 requires symfony/http-foundation ~4.0 -> satisfiable by symfony/http-foundation[v4.0.0, v4.0.1, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8].
- laravel/framework v5.6.4 requires symfony/http-foundation ~4.0 -> satisfiable by symfony/http-foundation[v4.0.0, v4.0.1, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8].
- laravel/framework v5.6.5 requires symfony/http-foundation ~4.0 -> satisfiable by symfony/http-foundation[v4.0.0, v4.0.1, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8].
- laravel/framework v5.6.6 requires symfony/http-foundation ~4.0 -> satisfiable by symfony/http-foundation[v4.0.0, v4.0.1, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8].
- laravel/framework v5.6.7 requires symfony/http-foundation ~4.0 -> satisfiable by symfony/http-foundation[v4.0.0, v4.0.1, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8].
- laravel/framework v5.6.8 requires symfony/http-foundation ~4.0 -> satisfiable by symfony/http-foundation[v4.0.0, v4.0.1, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8].
- laravel/framework v5.6.9 requires symfony/http-foundation ~4.0 -> satisfiable by symfony/http-foundation[v4.0.0, v4.0.1, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8].
- laravel/framework v5.6.15 requires symfony/http-foundation ~4.0 -> satisfiable by symfony/http-foundation[v4.0.0, v4.0.1, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8].
- Conclusion: don't install symfony/http-foundation v4.0.3|install symfony/http-foundation v4.0.1|install symfony/http-foundation v4.0.2|install symfony/http-foundation v4.0.4|install symfony/http-foundation v4.0.5|install symfony/http-foundation v4.0.6|install symfony/http-foundation v4.0.7|install symfony/http-foundation v4.0.8
- Installation request for laravel/framework 5.6.* -> satisfiable by laravel/framework[v5.6.0, v5.6.1, v5.6.10, v5.6.11, v5.6.12, v5.6.13, v5.6.14, v5.6.15, v5.6.2, v5.6.3, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9].我的composer.json:
{
"require": {
"php": ">=7.2",
"alexpechkarev/google-geocoder": "1.*",
"anhskohbo/no-captcha": "3.*",
"anlutro/l4-settings": "0.*",
"aws/aws-sdk-php": "~3.0",
"barryvdh/laravel-dompdf": "0.*",
"bkuhl/easychimp": "~1.0",
"bugsnag/bugsnag-laravel": "2.*",
"doctrine/dbal": "2.*",
"fzaninotto/faker": "^1.5",
"ignited/laravel-omnipay": "2.*",
"jackpopp/geodistance": "^1.2",
"jmikola/geojson": "~1.0",
"laravel/framework": "5.6.*",
"laravel/socialite": "^3.0",
"laravel/tinker": "~1.0",
"laravelcollective/html": "5.*",
"league/flysystem-aws-s3-v3": "^1.0",
"league/html-to-markdown": "^4.4",
"maatwebsite/excel": "3.*",
"omnipay/stripe": "2.*",
"predis/predis": "1.*",
"ramsey/uuid": "3.*",
"silber/bouncer": "v1.0.0-rc.1",
"spatie/laravel-backup": "^5.0",
"thomaswelton/laravel-gravatar": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "^7.0",
"filp/whoops": "~2.0",
"barryvdh/laravel-ide-helper": "2.*",
"nunomaduro/collision": "^2.0",
"mockery/mockery": "^1.0",
"laravel/browser-kit-testing": "4.*"
},
"prefer-stable": true,
"config": {
"preferred-install": "dist",
"sort-packages": true
}
}发布于 2018-04-15 04:18:44
问题是,在不重叠的版本范围内,不同的包需要symfony/http-foundation,无法找到满足所有依赖项的版本。
更确切地说:
使用“替换”忽略"symfony/http-foundation“要求
您可以使用作曲家替换绕过上述约束并成功完成更新。
所以在你的作曲家要求中,添加:
"thomaswelton/laravel-gravatar": "^1.0",
"symfony/http-foundation": "4.0.8"
}还定义了“替换”属性:
"replace": {
"symfony/http-foundation": "*"
},所以你要告诉作曲家:
不要在意任何版本的"symfony/http-foundation“(这就是你为什么要使用"*"),我已经处理好了。
这将使您的更新完成,但这并不意味着它将工作,因为“万能-通用”还没有测试与"symfony/http-foundation“的v4。你可以试试。
在我看来,我认为您应该跳过更新,继续使用Laravel5.5,直到万能/通用支持“symfony/http- v4”的v4为止,这似乎会发生很快。
使用“总括/通用”主支行
同样的问题可以通过使用支持的“万能/公共”主分支来解决。--这更有可能使工作。在这种情况下,不要执行上述操作,而是进行更改:
"omnipay/common": "dev-master",和
"replace": {
"omnipay/common": "*"
},https://stackoverflow.com/questions/49732622
复制相似问题