[英]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.