Laravel 4 Composer没有安装包

时间:2015-08-24 13:52:22

标签: laravel composer-php

我想制作一个网络服务,我需要安装一个名为JWT-Auth的扩展程序。

我从未真正使用作曲家所以我不知道问题出在哪里。

composer.json - >需要:

"require": {
    "laravel/framework": "4.2.*",
    "doctrine/dbal": "~2.4",
    "tymon/jwt-auth": "0.5.*",
    "illuminate/http": "5.0.*"
}

和作曲家的输出:

 $ sudo 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.

  Problem 1
    - Conclusion: remove laravel/framework v4.2.17
    - Conclusion: don't install laravel/framework v4.2.17
    - Conclusion: don't install laravel/framework v4.2.16
    - Conclusion: don't install laravel/framework v4.2.15
    - Conclusion: don't install laravel/framework v4.2.14
    - Conclusion: don't install laravel/framework v4.2.13
    - Conclusion: don't install laravel/framework v4.2.12
    - Conclusion: don't install laravel/framework v4.2.11
    - Conclusion: don't install laravel/framework v4.2.10
    - Conclusion: don't install laravel/framework v4.2.9
    - Conclusion: don't install laravel/framework v4.2.8
    - Conclusion: don't install laravel/framework v4.2.7
    - Conclusion: don't install laravel/framework v4.2.6
    - Conclusion: don't install laravel/framework v4.2.5
    - Conclusion: don't install laravel/framework v4.2.4
    - Conclusion: don't install laravel/framework v4.2.3
    - Conclusion: don't install laravel/framework v4.2.2
    - Conclusion: don't install laravel/framework v4.2.1
    - illuminate/http v5.0.0 requires illuminate/session 5.0.* -> satisfiable by illuminate/session[v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4].
    - illuminate/http v5.0.22 requires illuminate/session 5.0.* -> satisfiable by illuminate/session[v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4].
    - illuminate/http v5.0.25 requires illuminate/session 5.0.* -> satisfiable by illuminate/session[v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4].
    - illuminate/http v5.0.26 requires illuminate/session 5.0.* -> satisfiable by illuminate/session[v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4].
    - illuminate/http v5.0.28 requires illuminate/session 5.0.* -> satisfiable by illuminate/session[v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4].
    - illuminate/http v5.0.33 requires illuminate/session 5.0.* -> satisfiable by illuminate/session[v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4].
    - illuminate/http v5.0.4 requires illuminate/session 5.0.* -> satisfiable by illuminate/session[v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4].
    - don't install illuminate/session v5.0.0|don't install laravel/framework v4.2.0
    - don't install illuminate/session v5.0.22|don't install laravel/framework v4.2.0
    - don't install illuminate/session v5.0.25|don't install laravel/framework v4.2.0
    - don't install illuminate/session v5.0.26|don't install laravel/framework v4.2.0
    - don't install illuminate/session v5.0.28|don't install laravel/framework v4.2.0
    - don't install illuminate/session v5.0.33|don't install laravel/framework v4.2.0
    - don't install illuminate/session v5.0.4|don't install laravel/framework v4.2.0
    - Installation request for laravel/framework 4.2.* -> satisfiable by laravel/framework[v4.2.0, v4.2.1, v4.2.10, v4.2.11, v4.2.12, v4.2.13, v4.2.14, v4.2.15, v4.2.16, v4.2.17, v4.2.2, v4.2.3, v4.2.4, v4.2.5, v4.2.6, v4.2.7, v4.2.8, v4.2.9].
    - Installation request for illuminate/http 5.0.* -> satisfiable by illuminate/http[v5.0.0, v5.0.22, v5.0.25, v5.0.26, v5.0.28, v5.0.33, v5.0.4].

 $ 

1 个答案:

答案 0 :(得分:1)

Laravel 4.2需要0.4。*的jwt-auth软件包。你应该不需要定义illuminate / http,Laravel会为你做这件事。

试试这个(未经测试):

"require": {
    "laravel/framework": "4.2.*",
    "doctrine/dbal": "~2.4",
    "tymon/jwt-auth": "0.4.*"   
}