Error installing Composer in Laravel 4 Project

Asked

Viewed 1,001 times

6

I’m starting out in the Laravel world and I’m having a problem spinning the composer install in the project. Running the command shows the following error:

D:\htdocs\cpi2>composer install
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
    - zizaco/confide dev-master requires laravelbook/ardent 2.4.x -> satisfiable
 by laravelbook/ardent[v2.4.0].
    - Conclusion: don't install laravel/framework 4.0.x-dev
    - Conclusion: don't install illuminate/validation 4.2.x-dev
    - Conclusion: don't install illuminate/support v4.1.11
    - Conclusion: don't install illuminate/support v4.1.10
    - Conclusion: don't install laravel/framework v4.0.0-BETA4|install illuminat
e/support v4.1.10
    - Conclusion: don't install illuminate/validation 4.1.x-dev
    - Conclusion: don't install illuminate/support v4.1.9
    - Conclusion: don't install illuminate/support v4.1.8
    - Conclusion: don't install illuminate/support v4.1.7
    - Conclusion: don't install laravel/framework v4.0.10
    - Conclusion: don't install illuminate/support v4.1.6
    - Conclusion: don't install laravel/framework v4.0.0-BETA3|install illuminat
e/support v4.1.10|install illuminate/support v4.1.11|install illuminate/support
v4.1.6|install illuminate/support v4.1.7|install illuminate/support v4.1.8|insta
ll illuminate/support v4.1.9
    - Conclusion: don't install illuminate/validation v4.1.12
    - Conclusion: don't install doctrine/dbal 2.4.x-dev
    - Conclusion: don't install illuminate/support v4.1.2
    - Conclusion: don't install laravel/framework v4.0.9|install illuminate/supp
ort v4.1.2
    - Conclusion: don't install illuminate/support v4.1.1
    - Conclusion: don't install illuminate/validation v4.1.11
    - Conclusion: don't install illuminate/support v4.1.0
    - Conclusion: don't install laravel/framework v4.0.8|install illuminate/supp
ort v4.1.0|install illuminate/support v4.1.1|install illuminate/support v4.1.2
    - Conclusion: don't install doctrine/dbal v2.4.2
    - Conclusion: don't install doctrine/dbal v2.4.1
    - Conclusion: don't install laravel/framework v4.0.7
    - Conclusion: don't install laravel/framework 4.1.x-dev
    - Conclusion: don't install laravel/framework 4.2.x-dev|install laravel/fram
ework 4.1.x-dev|install illuminate/support v4.1.0|install illuminate/support v4.
1.1|install illuminate/support v4.1.2
    - Conclusion: don't install illuminate/validation v4.1.10|install laravel/fr
amework 4.1.x-dev|install laravel/framework 4.2.x-dev|install illuminate/support
 v4.1.0|install illuminate/support v4.1.1|install illuminate/support v4.1.2
    - Conclusion: don't install laravel/framework v4.1.12
    - Conclusion: don't install illuminate/validation v4.1.9
    - Conclusion: don't install doctrine/dbal v2.4.0
    - Conclusion: don't install doctrine/dbal 2.4.0-RC2
    - Conclusion: don't install laravel/framework v4.0.6
    - Conclusion: don't install laravel/framework v4.1.11
    - Conclusion: don't install laravel/framework v4.1.10
    - Conclusion: don't install illuminate/validation v4.1.8
    - Conclusion: don't install doctrine/dbal 2.4.0-RC1
    - Conclusion: don't install doctrine/dbal 2.4.0-BETA2
    - Conclusion: don't install laravel/framework v4.0.5
    - Conclusion: don't install laravel/framework v4.1.9
    - Conclusion: don't install laravel/framework v4.0.1|install laravel/framewo
rk 4.1.x-dev|install laravel/framework 4.2.x-dev|install laravel/framework v4.1.
10|install laravel/framework v4.1.11|install laravel/framework v4.1.12|install l
aravel/framework v4.1.9|install illuminate/validation v4.1.10|install illuminate
/validation v4.1.11|install illuminate/validation v4.1.8|install illuminate/vali
dation v4.1.9
    - Conclusion: don't install laravel/framework v4.1.8
    - Conclusion: don't install illuminate/validation v4.1.7
    - laravel/framework v4.0.0 requires doctrine/dbal 2.4.x -> satisfiable by do
ctrine/dbal[2.4.0-BETA1, 2.4.0-BETA2, 2.4.0-RC1, 2.4.0-RC2, 2.4.x-dev, v2.4.0, v
2.4.1, v2.4.2].
    - Conclusion: don't install doctrine/dbal 2.4.0-BETA1
    - Conclusion: don't install laravel/framework v4.0.4
    - Conclusion: don't install laravel/framework v4.1.7
    - Conclusion: don't install laravel/framework v4.1.6
    - Conclusion: don't install illuminate/validation v4.1.6
    - Conclusion: don't install laravel/framework v4.1.5
    - Conclusion: don't install illuminate/validation v4.1.5
    - Conclusion: don't install laravel/framework v4.1.4
    - Conclusion: don't install laravel/framework v4.1.3
    - Conclusion: don't install laravel/framework v4.0.3|install laravel/framewo
rk v4.1.3|install laravel/framework v4.1.4
    - Conclusion: don't install laravel/framework v4.1.2
    - Installation request for zizaco/confide dev-master -> satisfiable by zizac
o/confide[dev-master].
    - Conclusion: don't install laravel/framework v4.0.2|install laravel/framewo
rk v4.1.2|install laravel/framework v4.1.3
    - laravelbook/ardent v2.4.0 requires illuminate/validation ~4.1 -> satisfiab
le by laravel/framework[4.1.x-dev, 4.2.x-dev, v4.1.0, v4.1.1, v4.1.10, v4.1.11,
v4.1.12, v4.1.2, v4.1.3, v4.1.4, v4.1.5, v4.1.6, v4.1.7, v4.1.8, v4.1.9], illumi
nate/validation[4.1.x-dev, 4.2.x-dev, v4.1.0, v4.1.1, v4.1.10, v4.1.11, v4.1.12,
 v4.1.2, v4.1.3, v4.1.4, v4.1.5, v4.1.6, v4.1.7, v4.1.8, v4.1.9].
    - Can only install one of: laravel/framework[v4.1.0, v4.0.0-BETA2].
    - Can only install one of: laravel/framework[v4.1.1, v4.0.0-BETA2].
    - don't install illuminate/validation v4.1.0|don't install laravel/framework
 v4.0.0-BETA2
    - don't install illuminate/validation v4.1.1|don't install laravel/framework
 v4.0.0-BETA2
    - don't install illuminate/validation v4.1.2|don't install laravel/framework
 v4.0.0-BETA2
    - don't install illuminate/validation v4.1.3|don't install laravel/framework
 v4.0.0-BETA2
    - don't install illuminate/validation v4.1.4|don't install laravel/framework
 v4.0.0-BETA2
    - Installation request for laravel/framework 4.0.* -> satisfiable by laravel
/framework[4.0.x-dev, v4.0.0, v4.0.0-BETA2, v4.0.0-BETA3, v4.0.0-BETA4, v4.0.1,
v4.0.10, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8, v4.0.9].

This is due to the project being in Laravel 4 and the time to search for dependencies ta buscando of 4.1?

Follows my composer.json:

{
    "name": "leonelsr/cpi2",
    "description": "Comprei Por Impulso 2.0",
    "keywords": ["cpi2", "laravel"],
    "require": {
        "laravel/framework": "4.0.*",
        "zizaco/confide": "dev-master",
        "zizaco/entrust": "dev-master",
        "robclancy/presenter": "1.0.*",
        "j20/php-uuid": "dev-master",
        "bllim/datatables": "*",
        "orchestra/translation": "2.1.*",
        "baum/baum": "~1.0",
        "barryvdh/laravel-migration-generator": "dev-master"
    },
    "require-dev": {
        "way/generators": "dev-master",
        "mockery/mockery": "dev-master@dev",
        "summerstreet/woodling": "0.1.*",
        "barryvdh/laravel-ide-helper": "dev-master",
        "natxet/CssMin": "dev-master",
        "lmammino/jsmin4assetic": "1.0.*"
    },
    "autoload": {
        "classmap": [
            "app/commands",
            "app/controllers",
            "app/models",
            "app/database/migrations",
            "app/database/seeds",
            "app/tests/TestCase.php",
            "app/library"
        ]
    },
    "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"
}
  • 1

    When this happens, I usually install only the framework (Laravel/framework), and after installed, I start to add the third party Packages, one by one, so it is easier to be able to install everything :-)

6 answers

5

Change that:

"laravel/framework": "4.0.*",

To:

"laravel/framework": "4.1.*",

Ardent needs version 4.1.

  • I changed but the problem persists.

2

No use changing to "laravel/framework": "4.1.*" I already had this problem, you have to have version 4.1 and install the Ardent also as I asked here

Problem 1
    - zizaco/confide dev-master requires laravelbook/ardent 2.4.x -> satisfiable

2

Just fix your own Composer.json for:

{
   ...
   ...
    "require": {
       "laravel/framework": "4.1.*",
       ...
       ...
       ...
        "zizaco/confide": "3.1.x",
        "laravelbook/ardent": "dev-master"
    }
   ...
   ...
}

I recommend making a new installation to avoid dependency problems. (If possible).

0

due to the lack of Ardent updates, it is necessary to insert this in your Composer.json to avoid conflicts:

"repositories": [
    {
        "type": "vcs",
        "url": "https://github.com/Zizaco/ardent.git"
    }
],
"require": {
        "laravelbook/ardent": "dev-has-session-fix"
},

after that, rotate the Composer update and it’ll probably be over by now

0

The easiest way to solve this and download version 4 directly, while trying to install by composer he’s trying to find the latest version of the files.

Link to the 4.0.9

Later unzip in the directory you want to install the Laravel and with the Composer in the run directory:

php composer install

This last command will install the Laravel, but it is always advisable to use the latest version that can be downloaded as the Branche master:

Link to the 4.1

The rest of the process using the composer is the same as the previous.

-1

Remove the next code block from your Composer.json.

"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"
    ]
},

...This will solve 99% of your life’s problems! D

  • This is like sweeping the dirt under the rug.

  • ... this tip I took from one of the developers Laravel. I don’t remember the link, but in fact solved a lot of problem for me.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.