[英]laravel migration to 5.6 from 5.5 composer dependency error
I'm trying to upgrade a laravel project to 5.6 from 5.5. 我正在尝试将laravel项目从5.5升级到5.6。 I followed the instructions in the documentation 我遵循了文档中的说明
i'm getting this error while running composer update: The error seems to be related to phpunit/phpunit, which I upgraded to ~7.0 运行composer更新时出现此错误:该错误似乎与phpunit / phpunit有关,我将其升级到〜7.0
onsort git:(master) ✗ composer update Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages. onsort git:(master)✗composer更新加载包含软件包信息的composer存储库更新依赖项(包括require-dev)您的要求无法解决为一组可安装的软件包。
Problem 1 - Conclusion: don't install phpunit/phpunit 7.0.2|install sebastian/comparator 2.1.3 - Conclusion: don't install phpunit/phpunit 7.0.1|install sebastian/comparator 2.1.3 - Conclusion: don't install sebastian/comparator 2.1.3 - phpunit/phpunit 7.0.0 requires sebastian/comparator ^2.1 -> satisfiable by sebastian/comparator[2.1.1, 2.1.0, 2.1.2, 2.1.3]. 问题1-结论:不要安装phpunit / phpunit 7.0.2 |安装sebastian / comparator 2.1.3-结论:不要安装phpunit / phpunit 7.0.1 |安装sebastian / comparator 2.1.3-结论:不要安装sebastian / comparator 2.1.3-phpunit / phpunit 7.0.0需要sebastian / comparator ^ 2.1-> sebastian / comparator可满足[2.1.1、2.1.0、2.1.2、2.1.3]。 - sebastian/comparator 2.1.0 requires sebastian/diff ^2.0 -> satisfiable by sebastian/diff[2.0.1]. -sebastian / comparator 2.1.0要求sebastian / diff ^ 2.0-> sebastian / diff [2.0.1]可满足。 - sebastian/comparator 2.1.1 requires sebastian/diff ^2.0 -> satisfiable by sebastian/diff[2.0.1]. -sebastian / comparator 2.1.1要求sebastian / diff ^ 2.0-> sebastian / diff [2.0.1]可满足。 - sebastian/comparator 2.1.2 requires sebastian/diff ^2.0 -> satisfiable by sebastian/diff[2.0.1]. -sebastian /比较器2.1.2要求sebastian / diff ^ 2.0-> sebastian / diff [2.0.1]可满足。 - sebastian/comparator 2.1.1 requires sebastian/diff ^2.0 -> satisfiable by sebastian/diff[2.0.1]. -sebastian / comparator 2.1.1要求sebastian / diff ^ 2.0-> sebastian / diff [2.0.1]可满足。 - Can only install one of: sebastian/diff[3.0.0, 2.0.1]. -只能安装以下之一:sebastian / diff [3.0.0,2.0.1]。 - Can only install one of: sebastian/diff[3.0.0, 2.0.1]. -只能安装以下之一:sebastian / diff [3.0.0,2.0.1]。 - phpunit/phpunit 7.0.0 requires sebastian/diff ^3.0 -> satisfiable by sebastian/diff[3.0.0]. -phpunit / phpunit 7.0.0要求sebastian / diff ^ 3.0-> sebastian / diff [3.0.0]可满足要求。 - Installation request for phpunit/phpunit ~7.0 -> satisfiable by phpunit/phpunit[7.0.0, 7.0.1, 7.0.2]. -phpunit / phpunit〜7.0的安装请求-> phpunit / phpunit可满足[7.0.0,7.0.1,7.0.2]。
composer.json: composer.json:
"require": {
"php": ">=7.1.3",
"algolia/algoliasearch-client-php": "^1.23",
"aws/aws-sdk-php": "~3.0",
"caouecs/laravel-lang": "~3.0",
"fideloper/proxy": "~4.0",
"fzaninotto/faker": "~1.4",
"illuminate/support": "~5.0",
"intervention/image": "^2.4",
"laracasts/utilities": "~3.0",
"laravel/framework": "5.6.*",
"laravel/horizon": "^1.0",
"laravel/scout": "~4.0",
"laravel/tinker": "~1.0",
"league/flysystem-aws-s3-v3": "~1.0",
"predis/predis": "^1.1",
"tightenco/ziggy":"dev-master",
"ext-gd": "*"
},
"require-dev": {
"filp/whoops": "~2.0",
"mockery/mockery": "~1.0",
"phpunit/phpunit": "~7.0",
"phpspec/phpspec": "~2.0"
},
I solved this by reinstall all dependencies from scratch : 我通过重新安装所有依赖项解决了这个问题:
$ mv vendor/ oldvendor
$ composer install
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.