Issue
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"
}
                        
                        Solution
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 ;)
Answered By - justrohu
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.