1

我正在尝试通过以下命令将lumen-passport添加到我的 Lumen 项目,但由于我的版本composer require dusterio/lumen-passport而被暂停。illuminate/auth

Problem 1
- Installation request for dusterio/lumen-passport ^0.1.9 -> satisfiable by dusterio/lumen-passport[0.1.9].
- Conclusion: remove illuminate/auth v5.2.45
- Conclusion: don't install illuminate/auth v5.2.45
- dusterio/lumen-passport 0.1.9 requires laravel/passport >=0.2.2 -> satisfiable by laravel/passport[v0.2.2, v0.2.3, v0.2.4, v1.0.0, v1.0.1, v1.0.10, v1.0.11, v1.0.12, v1.0.13, v1.0.14, v1.0.15, v1.0.16, v1.0.17, v1.0.2, v1.0.3, v1.0.4, v1.0.5, v1.0.6, v1.0.7, v1.0.8, v1.0.9, v2.0.0, v2.0.1, v2.0.2, v2.0.3, v2.0.4].
- laravel/passport v0.2.2 requires illuminate/auth ~5.3 -> satisfiable by illuminate/auth[v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.9].
- laravel/passport v0.2.3 requires illuminate/auth ~5.3 -> satisfiable by illuminate/auth[v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.9].
- laravel/passport v0.2.4 requires illuminate/auth ~5.3 -> satisfiable by illuminate/auth[v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.9].
- laravel/passport v1.0.0 requires illuminate/auth ~5.3 -> satisfiable by illuminate/auth[v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.9].
- laravel/passport v1.0.1 requires illuminate/auth ~5.3 -> satisfiable by illuminate/auth[v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.9].
- laravel/passport v1.0.10 requires illuminate/auth ~5.3 -> satisfiable by illuminate/auth[v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.9].
- laravel/passport v1.0.11 requires illuminate/auth ~5.3 -> satisfiable by illuminate/auth[v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.9].
- laravel/passport v1.0.12 requires illuminate/auth ~5.3 -> satisfiable by illuminate/auth[v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.9].
- laravel/passport v1.0.13 requires illuminate/auth ~5.3 -> satisfiable by illuminate/auth[v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.9].
- laravel/passport v1.0.14 requires illuminate/auth ~5.3 -> satisfiable by illuminate/auth[v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.9].
- laravel/passport v1.0.15 requires illuminate/auth ~5.3 -> satisfiable by illuminate/auth[v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.9].
- laravel/passport v1.0.16 requires illuminate/auth ~5.3 -> satisfiable by illuminate/auth[v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.9].
- laravel/passport v1.0.17 requires illuminate/auth ~5.3 -> satisfiable by illuminate/auth[v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.9].
- laravel/passport v1.0.2 requires illuminate/auth ~5.3 -> satisfiable by illuminate/auth[v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.9].
- laravel/passport v1.0.3 requires illuminate/auth ~5.3 -> satisfiable by illuminate/auth[v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.9].
- laravel/passport v1.0.4 requires illuminate/auth ~5.3 -> satisfiable by illuminate/auth[v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.9].
- laravel/passport v1.0.5 requires illuminate/auth ~5.3 -> satisfiable by illuminate/auth[v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.9].
- laravel/passport v1.0.6 requires illuminate/auth ~5.3 -> satisfiable by illuminate/auth[v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.9].
- laravel/passport v1.0.7 requires illuminate/auth ~5.3 -> satisfiable by illuminate/auth[v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.9].
- laravel/passport v1.0.8 requires illuminate/auth ~5.3 -> satisfiable by illuminate/auth[v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.9].
- laravel/passport v1.0.9 requires illuminate/auth ~5.3 -> satisfiable by illuminate/auth[v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.9].
- laravel/passport v2.0.0 requires illuminate/auth ~5.4 -> satisfiable by illuminate/auth[v5.4.0, v5.4.9].
- laravel/passport v2.0.1 requires illuminate/auth ~5.4 -> satisfiable by illuminate/auth[v5.4.0, v5.4.9].
- laravel/passport v2.0.2 requires illuminate/auth ~5.4 -> satisfiable by illuminate/auth[v5.4.0, v5.4.9].
- laravel/passport v2.0.3 requires illuminate/auth ~5.4 -> satisfiable by illuminate/auth[v5.4.0, v5.4.9].
- laravel/passport v2.0.4 requires illuminate/auth ~5.4 -> satisfiable by illuminate/auth[v5.4.0, v5.4.9].
- Can only install one of: illuminate/auth[v5.3.0, v5.2.45].
- Can only install one of: illuminate/auth[v5.3.16, v5.2.45].
- Can only install one of: illuminate/auth[v5.3.23, v5.2.45].
- Can only install one of: illuminate/auth[v5.3.4, v5.2.45].
- Can only install one of: illuminate/auth[v5.4.0, v5.2.45].
- Can only install one of: illuminate/auth[v5.4.9, v5.2.45].
- Installation request for illuminate/auth (locked at v5.2.45) -> satisfiable by illuminate/auth[v5.2.45].

这是我执行时显示的内容composer show

doctrine/inflector                v1.1.0  Common String Manipulations with regard to casing and singular/plural ru...
doctrine/instantiator             1.0.5   A small, lightweight utility to instantiate objects in PHP without invok...
fzaninotto/faker                  v1.6.0  Faker is a PHP library that generates fake data for you.
illuminate/auth                   v5.2.45 The Illuminate Auth package.
illuminate/broadcasting           v5.2.45 The Illuminate Broadcasting package.
illuminate/bus                    v5.2.45 The Illuminate Bus package.
illuminate/cache                  v5.2.45 The Illuminate Cache package.
illuminate/config                 v5.2.45 The Illuminate Config package.
illuminate/console                v5.2.45 The Illuminate Console package.
illuminate/container              v5.2.45 The Illuminate Container package.
illuminate/contracts              v5.2.45 The Illuminate Contracts package.
illuminate/database               v5.2.45 The Illuminate Database package.
illuminate/encryption             v5.2.45 The Illuminate Encryption package.
illuminate/events                 v5.2.45 The Illuminate Events package.
illuminate/filesystem             v5.2.45 The Illuminate Filesystem package.
illuminate/hashing                v5.2.45 The Illuminate Hashing package.
illuminate/http                   v5.2.45 The Illuminate Http package.
illuminate/pagination             v5.2.45 The Illuminate Pagination package.
illuminate/pipeline               v5.2.45 The Illuminate Pipeline package.
illuminate/queue                  v5.2.45 The Illuminate Queue package.
illuminate/session                v5.2.45 The Illuminate Session package.
illuminate/support                v5.2.45 The Illuminate Support package.
illuminate/translation            v5.2.45 The Illuminate Translation package.
illuminate/validation             v5.2.45 The Illuminate Validation package.
illuminate/view                   v5.2.45 The Illuminate View package.
laravel/lumen-framework           v5.2.9  The Laravel Lumen Framework.
monolog/monolog                   1.22.0  Sends your logs to files, sockets, inboxes, databases and various web se...
mtdowling/cron-expression         v1.2.0  CRON for PHP: Calculate the next or previous run date and determine if a...
nesbot/carbon                     1.22.1  A simple API extension for DateTime.
nikic/fast-route                  v0.7.0  Fast request router for PHP
paragonie/random_compat           v1.4.1  PHP 5.x polyfill for random_bytes() and random_int() from PHP 7
phpdocumentor/reflection-common   1.0     Common reflection classes used by             phpdocumentor to reflect the code stru...
phpdocumentor/reflection-docblock 3.1.1   With this component, a library can provide support for annotations via D...
phpdocumentor/type-resolver       0.2.1
phpspec/prophecy                  v1.6.2  Highly opinionated mocking framework for PHP 5.3+
phpunit/php-code-coverage         2.2.4   Library that provides collection,     processing, and rendering functionalit...
phpunit/php-file-iterator         1.4.2   FilterIterator implementation that filters files based on a list of suff...
phpunit/php-text-template         1.2.1   Simple template engine.
phpunit/php-timer                 1.0.8   Utility class for timing
phpunit/php-token-stream          1.4.9   Wrapper around PHP's tokenizer extension.
phpunit/phpunit                   4.8.35  The PHP Unit Testing framework.
phpunit/phpunit-mock-objects      2.3.8   Mock Object library for PHPUnit
psr/log                           1.0.2   Common interface for logging libraries
sebastian/comparator              1.2.4   Provides the functionality to compare PHP values for equality
sebastian/diff                    1.4.1   Diff implementation
sebastian/environment             1.3.8   Provides functionality to handle HHVM/PHP environments
sebastian/exporter                1.2.2   Provides the functionality to export PHP variables for visualization
sebastian/global-state            1.1.1   Snapshotting of global state
sebastian/recursion-context       1.0.2   Provides functionality to recursively process PHP variables
sebastian/version                 1.0.6   Library that helps with managing the version number of Git-hosted PHP pr...
symfony/console                   v3.0.9  Symfony Console Component
symfony/debug                     v3.0.9  Symfony Debug Component
symfony/event-dispatcher          v3.2.4  Symfony EventDispatcher Component
symfony/finder                    v3.0.9  Symfony Finder Component
symfony/http-foundation           v3.0.9  Symfony HttpFoundation Component
symfony/http-kernel               v3.0.9  Symfony HttpKernel Component
symfony/polyfill-mbstring         v1.3.0  Symfony polyfill for the Mbstring extension
symfony/polyfill-php56            v1.3.0  Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions
symfony/polyfill-util             v1.3.0  Symfony utilities for portability of PHP codes
symfony/process                   v3.0.9  Symfony Process Component
symfony/translation               v3.0.9  Symfony Translation Component
symfony/yaml                      v3.2.4  Symfony Yaml Component
vlucas/phpdotenv                  v2.4.0  Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SE...
webmozart/assert                  1.2.0   Assertions to validate method input/output with nice error messages.

最后composer.json

{
    "name": "laravel/lumen",
    "description": "The Laravel Lumen Framework.",
    "keywords": ["framework", "laravel", "lumen"],
    "license": "MIT",
    "type": "project",
    "require": {
        "php": ">=5.5.9",
        "laravel/lumen-framework": "5.2.*",
        "vlucas/phpdotenv": "~2.2"
    },
        "require-dev": {
        "fzaninotto/faker": "~1.4",
        "phpunit/phpunit": "~4.0"
    },
    "autoload": {
        "psr-4": {
            "App\\": "app/"
        }
    },
    "autoload-dev": {
        "classmap": [
            "tests/",
            "database/"
        ]
    }
}

我安装了最新版本的 Lumen v5.4.4。这似乎是一个laravel/passport依赖问题,而不是依赖问题,lumen-passportpackageagist上的说明lumen-passport会在此过程中被抓住。

似乎我的版本illuminate/auth需要更新,但是 composer.lock 文件将其限制为 v5.2.45,因此我犹豫对文件进行任何更改,并且不太确定如何继续解决此依赖问题所以我可以安装lumen-passport。感谢您对此的任何帮助。

4

1 回答 1

1

您确定您的依赖项是最新的吗?检查您安装的版本composer show

lumen-passport 0.1.9要求laravel/passport >=0.2.2,这要求至少illuminate/auth ~5.3或更高。但是你的illuminate/auth被锁定了5.2.45。我建议至少更新laravel/passport或做一个composer update. 确保在更新前有备份。

于 2017-02-20T07:43:01.590 回答