将 Laravel 从 5.5 升级到 5.6 时出错



我正在尝试将我的Laravel 5.5应用程序升级到Laravel 5.6。为此,我一直在遵循升级指南。

作曲家.json

{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "type": "project",
    "require": {
        "php": ">=7.1.3",
        "encore/laravel-admin": "1.5.*",
        "fideloper/proxy": "~4.0",
        "intervention/image": "^2.4",
        "laravel/framework": "5.6.*",
        "laravel/passport": "^5.0",
        "laravel/tinker": "~1.0",
        "nesbot/carbon": "^1.22",
        "sebdesign/laravel-state-machine": "^1.2"
    },
    "require-dev": {
        "fzaninotto/faker": "~1.4",
        "laravel/homestead": "^5.1",
        "mockery/mockery": "0.9.*",
        "phpunit/phpunit": "~7.0",
        "filp/whoops": "~2.0"
    },
}

但是当我使用composer update时,我收到以下错误:

problem 1
    - Conclusion: don't install laravel/framework v5.6.17
    - Conclusion: don't install laravel/framework v5.6.16
    - Conclusion: don't install laravel/framework v5.6.15
    - Conclusion: don't install laravel/framework v5.6.14
    - Conclusion: don't install laravel/framework v5.6.13
    - Conclusion: don't install laravel/framework v5.6.12
    - Conclusion: don't install laravel/framework v5.6.11
    - Conclusion: don't install laravel/framework v5.6.10
    - Conclusion: don't install laravel/framework v5.6.9
    - Conclusion: don't install laravel/framework v5.6.8
    - Conclusion: don't install laravel/framework v5.6.7
    - Conclusion: don't install laravel/framework v5.6.6
    - Conclusion: don't install laravel/framework v5.6.5
    - Conclusion: don't install laravel/framework v5.6.4
    - Conclusion: don't install laravel/framework v5.6.3
    - Conclusion: don't install laravel/framework v5.6.2
    - Conclusion: don't install laravel/framework v5.6.1
    - Conclusion: don't install symfony/process 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.16, v5.6.17, v5.6.2, v5.6.3, v5.6.4, v5.6.5, v5.6.6, v5.6.7, v5.6.8, v5.6.9].

我尝试删除vendor目录并重新运行composer update,但它仍然不起作用。

我将如何解决这个问题?

您需要

laravel/homestead升级到 6.x 或 7.x 行。5.x不支持Laravel 5.6所要求的Symfony 4。

"require-dev": {
    "laravel/homestead": "^6.6",
    ...
},

对于这样的问题,您实际上应该尝试读取这些 30k 个字符 - 您所需要的只是:

  • LaRavel/Homestead v5.1.0 需要 symfony/process ~2.3|~3.0/.../
  • Laravel/Framework v5.6.0 需要 symfony/process ~4.0/.../

看起来 laravel 5.6 没有更新或不支持某些依赖项。

按照此视频指南从 laravel5.5 升级到 5.6 通过杰弗里的方式

相关内容

  • 没有找到相关文章

最新更新