donlih2986 2014-10-10 05:56
浏览 157
已采纳

运行composer install时出现Laravel 4.0.9错误

This never happened in the past for me when deploying Laravel 4. The version is 4.0.9 to be exact. Here is the error when running composer install

root@server1 [/home/testapp/www]# composer install
Warning: This development build of composer is over 30 days old. It is recommended to update it by running "/usr/local/bin/composer self-update" to get the latest version.
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for laravel/framework 4.0.9 -> satisfiable by laravel/framework[v4.0.9].
    - way/generators dev-master requires illuminate/support ~5.0 -> satisfiable by laravel/framework[5.0.x-dev], illuminate/support[5.0.x-dev].
    - Can only install one of: laravel/framework[v4.0.9, 5.0.x-dev].
    - don't install illuminate/support 5.0.x-dev|don't install laravel/framework v4.0.9
    - Installation request for way/generators dev-master -> satisfiable by way/generators[dev-master].

Does anybody know why this is happening?

EDIT

composer.json

{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "require": {
        "laravel/framework": "4.0.9",
        "way/generators": "dev-master",
        "intervention/image": "dev-master",
        "facebook/php-sdk": "dev-master"
    },
    "autoload": {
        "classmap": [
            "app/commands",
            "app/controllers",
            "app/models",
            "app/database/migrations",
            "app/database/seeds",
            "app/tests/TestCase.php"
        ]
    },
    "scripts": {
        "post-install-cmd": [
            "php artisan optimize"
        ],
        "pre-update-cmd": [
            "php artisan clear-compiled"
        ],
        "post-update-cmd": [
            "php artisan optimize"
        ],
        "post-create-project-cmd": [
            "php artisan key:generate"
        ]
    },
    "config": {
        "preferred-install": "dist"
    },
    "minimum-stability": "dev"
}
  • 写回答

2条回答 默认 最新

  • dpfw3607 2014-10-10 06:19
    关注

    You are trying to install dev-master version of way/generators and this dev-master requires illuminate support of version 5.0 where as you are installing laravel 4.0.9 that is why that error is coming up

    please replace "way/generators": "dev-master" with this "way/generators": "2.6.1"
    

    And you will just be fine.

    Have fun coding ;)

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效