Laravel护照安装错误

时间:2017-01-27 03:33:20

标签: php laravel composer-php laravel-5.3 laravel-passport

我刚刚下载了最新的laravel 5.3并且我试图安装护照,但我收到了以下作曲家错误:

Your requirements could not be resolved to an installable set of packages.

      Problem 1
        - laravel/passport v2.0.0 requires illuminate/http ~5.4 -> satisfiable by illuminate/http[v5.4.0].
        - laravel/passport v2.0.1 requires illuminate/http ~5.4 -> satisfiable by illuminate/http[v5.4.0].
        - Conclusion: don't install illuminate/http v5.4.0
        - Installation request for laravel/passport ^2.0 -> satisfiable by laravel/passport[v2.0.0, v2.0.1].


    Installation failed, reverting ./composer.json to its original content.

Composer .json文件
http://pastebin.com/ne4RkL96

4 个答案:

答案 0 :(得分:11)

它发生了,因为在发布Laravel 5.4之后,这个软件包也已经更新到v 2.0并且需​​要Laravel 5.4。但是你使用的是Laravel 5.3。尝试安装早期版本:

composer require laravel/passport ^v1

此外,您可以在此处了解此软件包的版本:

Laravel Passport

答案 1 :(得分:1)

根据Rashad的答案,因为它帮助了我,你需要的护照版本少于主要版本2.这可以通过多个版本字符串= New Index: 98:4F:EE:06:0B:03 (BR/EDR,UART,hci0) [hci0] 0.595705 > ACL Data RX: Handle 12 flags 0x02 dlen 19 [hci0] 11.420307 Channel: 64 len 15 [PSM 0 mode 0] {chan 0} 1b ef 17 68 68 67 67 67 65 65 65 65 0d 0a 8f ...hhgggeeee... > HCI Event: Mode Change (0x14) plen 6 [hci0] 11.923905 Status: Success (0x00) Handle: 12 Mode: Active (0x00) Interval: 0.000 msec (0x0000) ^v1完成, v1.x以及其他几种组合。

我使用了这个:>= 1 < 2,它工作得非常棒。

答案 2 :(得分:1)

对于Laravel 5.3。

composer.json文件中放置"laravel/passport": "~1.0"并运行“composer update”命令。

答案 3 :(得分:1)

安装laravel护照版本7:

> composer require laravel/passport:7.5.1