从5.5作曲家更新到laravel 5.6失败
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了从5.5作曲家更新到laravel 5.6失败相关的知识,希望对你有一定的参考价值。
我一直在关注Laravel网站上5.5 - > 5.6 https://laravel.com/docs/5.6/upgrade提供的升级指南
当我运行作曲家安装时,一切似乎都没问题,但是后来我运行作曲家更新一切都变得不稳定,这似乎是我应该关注的事情,我该如何解决?
您的要求无法解析为可安装的软件包集。
Problem 1
- Installation request for orchestra/testbench 3.6.2 -> satisfiable by orchestra/testbench[v3.6.2].
- Conclusion: don't install laravel/framework v5.6.7
- Conclusion: don't install laravel/framework v5.6.6
- sofa/eloquence v5.5.1 requires sofa/eloquence-base 5.5.* -> satisfiable by sofa/eloquence-base[v5.5].
- sofa/eloquence v5.5.1 requires sofa/eloquence-base 5.5.* -> satisfiable by sofa/eloquence-base[v5.5].
- sofa/eloquence-base v5.5 requires illuminate/database 5.5.* -> satisfiable by laravel/framework[v5.5.19], illuminate/database[v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28, v5.5.33, v5.5.34, v5.5.35, v5.5.36].
- sofa/eloquence-base v5.5 requires illuminate/database 5.5.* -> satisfiable by laravel/framework[v5.5.19], illuminate/database[v5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28, v5.5.33, v5.5.34, v5.5.35, v5.5.36].
- don't install laravel/framework v5.6.4|remove laravel/framework v5.5.19
- don't install illuminate/database v5.5.0|don't install laravel/framework v5.6.4
- don't install illuminate/database v5.5.16|don't install laravel/framework v5.6.4
- don't install illuminate/database v5.5.17|don't install laravel/framework v5.6.4
- don't install illuminate/database v5.5.2|don't install laravel/framework v5.6.4
- don't install illuminate/database v5.5.28|don't install laravel/framework v5.6.4
- don't install illuminate/database v5.5.33|don't install laravel/framework v5.6.4
- don't install illuminate/database v5.5.34|don't install laravel/framework v5.6.4
- don't install illuminate/database v5.5.35|don't install laravel/framework v5.6.4
- don't install illuminate/database v5.5.36|don't install laravel/framework v5.6.4
- orchestra/testbench v3.6.2 requires laravel/framework ~5.6.4 -> satisfiable by laravel/framework[v5.6.4, v5.6.5, v5.6.6, v5.6.7].
- Conclusion: don't install laravel/framework v5.6.5
- Installation request for sofa/eloquence ~5.5.1 -> satisfiable by sofa/eloquence[v5.5.1].
这是我的作曲家文件的样子
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=5.6.4",
"laravel/framework": "5.6.*",
"ext-ldap": "*",
"tymon/jwt-auth": "0.5.*",
"adldap2/adldap2-laravel": "3.0.*",
"barryvdh/laravel-cors": "*",
"regulus/activity-log": "0.5.*",
"backup-manager/laravel": "^1.2.2",
"league/flysystem-sftp": "^1.0",
"intervention/image": "^2.3",
"sofa/eloquence": "~5.5.1",
"sofa/eloquence-base":"~5.5",
"shiftonelabs/laravel-nomad": "^1.0",
"predis/predis": "^1.1",
"shiftonelabs/laravel-cascade-deletes": "^1.0",
"kalnoy/nestedset": "^4.3",
"laravel/tinker": "^1.0",
"guzzlehttp/guzzle": "~6.0",
"pusher/pusher-php-server": "~3.0",
"swiftmailer/swiftmailer":"^6.0",
"fideloper/proxy":"~4.0"
},
"require-dev": {
"laravel/dusk": "~2.0.0",
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~7.0",
"filp/whoops": "~2.0",
"orchestra/testbench":"3.6.2",
"symfony/css-selector": "3.1.*",
"symfony/dom-crawler": "3.1.*",
"laracasts/generators": "dev-master as 1.1.4",
"barryvdh/laravel-ide-helper": "^2.4"
},
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\": "app/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\": "tests/"
}
},
"scripts": {
"post-root-package-install": [
"php -r "file_exists('.env') || copy('.env.example', '.env');""
],
"post-create-project-cmd": [
"php artisan key:generate"
],
"post-install-cmd": [
"Illuminate\Foundation\ComposerScripts::postInstall",
"php artisan optimize"
],
"post-update-cmd": [
"Illuminate\Foundation\ComposerScripts::postUpdate",
"php artisan ide-helper:generate",
"php artisan ide-helper:meta",
"php artisan optimize"
],"post-autoload-dump": [
"Illuminate\Foundation\ComposerScripts::postAutoloadDump",
"@php artisan package:discover"
]
},
"config": {
"preferred-install": "dist",
"optimize-autoloader": true
},
"extra": {
"laravel": {
"dont-discover": [
"laravel/dusk"
]
}
}
}
答案
看起来sofa/eloquence
5.5.1需要Laravel 5.5,这会阻止你升级到Laravel 5.6。
看起来他们三天前发布了一个与Laravel 5.6兼容的软件包;您可以编辑您的作曲家文件,将其版本更改为5.6并运行composer update
。
"sofa/eloquence": "^5.6",
"sofa/eloquence-base":"^5.6",
另一答案
根据文件说:
Laravel 5.6需要PHP 7.1.3或更高版本。
尝试更改您的composer.json:
"require": {
"php": ">=7.1.3",
如果有帮助,请告诉我
编辑
尝试更改配置:
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true,
"minimum-stability":"dev",
"prefer-stable": true
}
并检查所有必需的插件是否支持最新版本的laravel。
以上是关于从5.5作曲家更新到laravel 5.6失败的主要内容,如果未能解决你的问题,请参考以下文章
Laravel 从 5.5 升级到 5.6 到 5.7:未捕获 ReferenceError: axios is not defined