简体   繁体   English

Laravel:您的要求无法解决为一组可安装的软件包

[英]Laravel: Your requirements could not be resolved to an installable set of packages

I'm trying to update Laravel using the composer update . 我正在尝试使用composer update来更新Laravel。 I'm following the guide at https://laravel.com/docs/5.4/upgrade but am getting stuck when running composer update. 我正在遵循https://laravel.com/docs/5.4/upgrade上的指南,但是在运行作曲家更新时会陷入困境。

*Note: I don't have "bootstrap/cache/compiled.php". *注意:我没有“ bootstrap / cache / compiled.php”。

I've updated the composer.json as follows: 我已经更新了composer.json,如下所示:

{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
    "php": ">=5.5.9",
    "laravel/framework": "5.4.*",
    "illuminate/html": "5.0.*",
    "laravelcollective/html": "5.2.*"
},
"require-dev": {
    "fzaninotto/faker": "~1.4",
    "mockery/mockery": "0.9.*",
    "phpunit/phpunit": "~5.7",
    "symfony/css-selector": "2.8.*|3.0.*",
    "symfony/dom-crawler": "2.8.*|3.0.*"
},
"autoload": {
    "classmap": [
        "database"
    ],
    "psr-4": {
        "App\\": "app/"
    }
},
"autoload-dev": {
    "classmap": [
        "tests/TestCase.php"
    ]
},
"scripts": {
    "post-root-package-install": [
        "php -r \"copy('.env.example', '.env');\""
    ],
    "post-create-project-cmd": [
        "php artisan key:generate"
    ],
    "post-install-cmd": [
        "php artisan clear-compiled",
        "php artisan optimize"
    ],
    "pre-update-cmd": [
        "php artisan clear-compiled"
    ],
    "post-update-cmd": [
        "php artisan optimize"
    ]
},
"config": {
    "preferred-install": "dist"
}
}

The console throws the following errors: 控制台引发以下错误:

在此处输入图片说明

在此处输入图片说明

Your laravelcollective package points to a version that requires <= 5.2.* of the Laravel Core 您的laravelcollective软件包指向需要<= 5.2。*的Laravel Core

Manually update it, then re-run it: 手动更新它,然后重新运行它:

"laravelcollective/html": "^5.4.0"

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Composer 安装 Laravel:无法将您的要求解析为一组可安装的软件包 - Composer install Laravel: Your requirements could not be resolved to an installable set of packages 无法将您的要求解析为一组可安装的软件包。 - Laravel 5.7 - Your requirements could not be resolved to an installable set of packages. - Laravel 5.7 您的要求无法解析为 laravel 5.7 中的一组可安装软件包 - Your requirements could not be resolved to an installable set of packages in laravel 5.7 您的要求无法解决为 laravel 的一组可安装软件包 - Your requirements could not be resolved to an installable set of packages for laravel 错误:无法将您的要求解析为一组可安装的软件包。 Laravel - Error: Your requirements could not be resolved to an installable set of packages. Laravel PHP Laravel 错误 - 您的要求无法解析为一组可安装的软件包 - PHP Laravel error - Your requirements could not be resolved to an installable set of packages Laravel部署您的要求无法解决为一组可安装的软件包 - Laravel deployement Your requirements could not be resolved to an installable set of packages Laravel安装“您的要求无法解决为一组可安装的软件包。” - Laravel Installation “ Your requirements could not be resolved to an installable set of packages.” 您的要求无法解决为一组可安装的软件包。 (Laravel) - Your requirements could not be resolved to an installable set of packages. (Laravel) Laravel:您的要求无法解析为可安装的软件包集 - Laravel : Your requirements could not be resolved to an installable set of packages
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM