I had a similar problem when trying to start a composer update, and none of the solutions above worked. Turns out I had 2 sections in my composer.json, which is actually wrong.
"require": { "laravel/framework": "4.1.*" }, "config": { "preferred-install": "dist" }, "minimum-stability": "stable", "require": { "barryvdh/laravel-ide-helper": "1.*", "zizaco/confide": "3.2.x", "laravelbook/ardent": "dev-master", "zizaco/entrust": "dev-master" }, "require-dev": { "way/generators": "2.*", "fzaninotto/faker": "1.3.*@dev" }
Combining the two as shown below solved my problem.
"require": { "laravel/framework": "4.1.*", "barryvdh/laravel-ide-helper": "1.*", "zizaco/confide": "3.2.x", "laravelbook/ardent": "dev-master", "zizaco/entrust": "dev-master" },
If you still have a problem, try deleting the composer.lock directory and the vendor directory and run
mv ~/.composer/cache ~/.composer/cache.bak
To clear the composer's cache and finally run
sudo composer install
This should solve the problem.
source share