将Larael从5.1.35更新为5.2。* - 无法升级symfony / css-selector

时间:2016-08-16 16:41:31

标签: laravel-5 css-selectors composer-php laravel-5.2 laravel-5.1

我正在尝试将Laravel 5.1.35升级到Laravel 5.2,我收到以下错误:

Problem 1
    - laravel/framework v5.1.35 requires symfony/css-selector 2.7.* -> satisfiable by symfony/css-selector[2.7.x-dev, v2.7.0, v2.7.0-BETA1, v2.7.0-BETA2, v2.7.1, v2.7.10, v2.7.11, v2.7.12, v2.7.13, v2.7.14, v2.7.15, v2.7.16, v2.7.2, v2.7.3, v2.7.4, v2.7.5, v2.7.6, v2.7.7, v2.7.8, v2.7.9] but these conflict with your requirements or minimum-stability.
    - Conclusion: don't install laravel/framework v5.2.43
    - Conclusion: don't install laravel/framework v5.2.42
    - Conclusion: don't install laravel/framework 5.2.41
    - Conclusion: don't install laravel/framework v5.2.40
    - Conclusion: don't install laravel/framework v5.2.39
    - Conclusion: don't install laravel/framework v5.2.38
    - Conclusion: don't install laravel/framework v5.2.37
    - Conclusion: don't install laravel/framework v5.2.36
    - Conclusion: don't install laravel/framework v5.2.35
    - Conclusion: don't install laravel/framework v5.2.34
    - Conclusion: don't install laravel/framework v5.2.33
    - Conclusion: don't install laravel/framework v5.2.32
    - Conclusion: don't install laravel/framework v5.2.31
    - Conclusion: don't install laravel/framework v5.2.30
    - Conclusion: don't install laravel/framework v5.2.29
    - Conclusion: don't install laravel/framework v5.2.28
    - Conclusion: don't install laravel/framework v5.2.27
    - Conclusion: don't install laravel/framework v5.2.26
    - Conclusion: don't install laravel/framework v5.2.25
    - Conclusion: don't install laravel/framework v5.2.24
    - Conclusion: don't install laravel/framework v5.2.23
    - Conclusion: don't install laravel/framework v5.2.22
    - Conclusion: don't install laravel/framework v5.2.21
    - Conclusion: don't install laravel/framework v5.2.20
    - Conclusion: don't install laravel/framework v5.2.19
    - Conclusion: don't install laravel/framework v5.2.18
    - Conclusion: don't install laravel/framework v5.2.17
    - Conclusion: don't install laravel/framework v5.2.16
    - Conclusion: don't install laravel/framework v5.2.15
    - Conclusion: don't install laravel/framework v5.2.14
    - Conclusion: don't install laravel/framework v5.2.13
    - Conclusion: don't install laravel/framework v5.2.12
    - Conclusion: don't install laravel/framework v5.2.11
    - Conclusion: don't install laravel/framework v5.2.10
    - Conclusion: don't install laravel/framework v5.2.9
    - Conclusion: don't install laravel/framework v5.2.8
    - Conclusion: don't install laravel/framework v5.2.7
    - Conclusion: don't install laravel/framework v5.2.6
    - Conclusion: don't install laravel/framework v5.2.5
    - Conclusion: don't install laravel/framework v5.2.4
    - Conclusion: don't install laravel/framework v5.2.3
    - Conclusion: don't install laravel/framework v5.2.2
    - Conclusion: don't install laravel/framework v5.2.1
    - lucadegasperi/oauth2-server-laravel 5.0.3 requires illuminate/http 5.1.* -> satisfiable by laravel/framework[v5.1.35], illuminate/http[v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8].
    - lucadegasperi/oauth2-server-laravel 5.0.2 requires illuminate/http 5.1.* -> satisfiable by laravel/framework[v5.1.35], illuminate/http[v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8].
    - lucadegasperi/oauth2-server-laravel 5.0.1 requires illuminate/http 5.1.* -> satisfiable by laravel/framework[v5.1.35], illuminate/http[v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8].
    - lucadegasperi/oauth2-server-laravel 5.0.0 requires illuminate/http 5.1.* -> satisfiable by laravel/framework[v5.1.35], illuminate/http[v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8].
    - lucadegasperi/oauth2-server-laravel 5.0.3 requires illuminate/http 5.1.* -> satisfiable by laravel/framework[v5.1.35], illuminate/http[v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8].
    - don't install illuminate/http v5.1.1|don't install laravel/framework v5.2.0
    - don't install illuminate/http v5.1.13|don't install laravel/framework v5.2.0
    - don't install illuminate/http v5.1.16|don't install laravel/framework v5.2.0
    - don't install illuminate/http v5.1.2|don't install laravel/framework v5.2.0
    - don't install illuminate/http v5.1.20|don't install laravel/framework v5.2.0
    - don't install illuminate/http v5.1.22|don't install laravel/framework v5.2.0
    - don't install illuminate/http v5.1.25|don't install laravel/framework v5.2.0
    - don't install illuminate/http v5.1.28|don't install laravel/framework v5.2.0
    - don't install illuminate/http v5.1.30|don't install laravel/framework v5.2.0
    - don't install illuminate/http v5.1.31|don't install laravel/framework v5.2.0
    - don't install illuminate/http v5.1.41|don't install laravel/framework v5.2.0
    - don't install illuminate/http v5.1.6|don't install laravel/framework v5.2.0
    - don't install illuminate/http v5.1.8|don't install laravel/framework v5.2.0
    - Installation request for laravel/framework 5.2.* -> satisfiable by laravel/framework[5.2.41, v5.2.0, v5.2.1, v5.2.10, v5.2.11, v5.2.12, v5.2.13, v5.2.14, v5.2.15, v5.2.16, v5.2.17, v5.2.18, v5.2.19, v5.2.2, v5.2.20, v5.2.21, v5.2.22, v5.2.23, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.29, v5.2.3, v5.2.30, v5.2.31, v5.2.32, v5.2.33, v5.2.34, v5.2.35, v5.2.36, v5.2.37, v5.2.38, v5.2.39, v5.2.4, v5.2.40, v5.2.42, v5.2.43, v5.2.5, v5.2.6, v5.2.7, v5.2.8, v5.2.9].
    - Installation request for lucadegasperi/oauth2-server-laravel 5.0.* -> satisfiable by lucadegasperi/oauth2-server-laravel[5.0.0, 5.0.1, 5.0.2, 5.0.3].

我知道有些软件包尚不支持Laravel 5.2,但在手册(https://laravel.com/docs/5.2/upgrade)中明确告知我应该将以下行添加到我的composer.json

"symfony/css-selector": "~3.0"

然而,似乎这个包是导致问题的原因。如何继续更新?谢谢。

这是我的完整composer.json

{
  "name": "laravel/laravel",
  "description": "The Laravel Framework.",
  "keywords": [
    "framework",
    "laravel"
  ],
  "license": "MIT",
  "type": "project",
  "require": {
    "php": ">=5.5.9",
    "laravel/framework": "5.2.*",
    "aws/aws-sdk-php-laravel": "~3.0",
    "vinkla/hashids": "^1.1",
    "cartalyst/sentinel": "~2.0.1",
    "baum/baum": "~1.1",
    "robclancy/presenter": "1.3.*",
    "barryvdh/laravel-ide-helper": "^2.0",
    "league/flysystem-aws-s3-v3": "~1.0",
    "intervention/image": "^2.2",
    "rap2hpoutre/laravel-log-viewer": "^0.2.8",
    "league/fractal": "^0.12.0",
    "ramsey/uuid": "~2.8",
    "lucadegasperi/oauth2-server-laravel": "5.0.*",
    "torann/geoip": "0.2.*@dev",
    "mailchimp/mailchimp": "^2.0",
    "iron-io/iron_mq": "~2.0",
    "aws/aws-sdk-php": "~3.0",
    "justinrainbow/json-schema": "~1.3",
    "sybio/gif-frame-extractor": "^1.0",
    "coldume/imagecraft": "dev-gif-optimization",
    "pragmarx/firewall": "^0.5.2",
    "get-stream/stream-laravel": "dev-master",
    "roumen/sitemap": "2.5.*",
    "guzzlehttp/guzzle": "~6.0",
    "bugsnag/bugsnag-laravel": "1.*",
    "cviebrock/image-validator": "^2.0",
    "toin0u/geocoder-laravel": "@stable",
    "badawy/embedly": "^1.0",
    "facebook/webdriver": "^1.0",
    "scotteh/php-dom-wrapper": "dev-composer-symfony-fix",
    "scotteh/php-goose": "dev-composer-guzzle-fix",
    "doctrine/dbal": "^2.5",
    "mandrill/mandrill": "1.0.*"
  },
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/zmike808GS/imagecraft"
    },
    {
      "type": "vcs",
      "url": "https://github.com/zmike808GS/php-goose"
    },
    {
      "type": "vcs",
      "url": "https://github.com/zmike808GS/php-dom-wrapper"
    }
  ],
  "require-dev": {
    "fzaninotto/faker": "~1.4",
    "mockery/mockery": "0.9.*",
    "phpunit/phpunit": "~4.0",
    "phpspec/phpspec": "~2.1",
    "laracasts/testdummy": "~2.0",
    "symfony/dom-crawler": "~3.0",
    "symfony/css-selector": "~3.0"
  },
  "autoload": {
    "classmap": [
      "database"
    ],
    "psr-4": {
      "**************": "*********"
    }
  },
  "autoload-dev": {
    "classmap": [
      "tests"
    ]
  },
  "scripts": {
    "post-install-cmd": [
      "php artisan clear-compiled",
      "php artisan optimize"
    ],
    "pre-update-cmd": [
      "php artisan clear-compiled"
    ],
    "post-update-cmd": [
      "php artisan clear-compiled",
      "php artisan ide-helper:generate",
      "php artisan optimize"
    ],
    "post-root-package-install": [
      "php -r \"copy('.env.example', '.env');\""
    ],
    "post-create-project-cmd": [
      "php artisan key:generate"
    ]
  },
  "config": {
    "preferred-install": "dist",
    "github-oauth": {
      "github.com": "********************************************"
    }
  }
}

1 个答案:

答案 0 :(得分:2)

您明确要求lucadegasperi/oauth2-server-laravel版本5.0.*itself depends on Illuminate version 5.1.*。此依赖关系comes from Laravel 5.1,与升级到5.2。

冲突

如果您的lucadegasperi/oauth2-server-laravel依赖于~5.1depends on 5.1.* || 5.2.*)或更高(~5.2 depends on 5.1.* || 5.2.* || 5.3.*),则不再出现冲突。当然,您应该查看可能会影响您的应用程序的对该库的任何更改。