Trouble installing Laravel? You may need to update your composer.json file

Composer recently made a change with the way pre-update-command works and it can cause Laravel to fail to install.

Jordi Boggiano gave the following reason for the change:

as there is no composer.lock file the initial “install” is instead doing an update (as of this afternoon), which triggers the pre-update-cmd, while this was previously triggering pre-install-cmd.

Luckily the fix is easy and only requires a moving the php artisan clear-compiled to the post-update-command:

laravel-composer-change

You can see the complete changelog here.


Filed in: News / Composer


Newsletter

Join the weekly newsletter and never miss out on new tips, tutorials, and more.

Laravel News Partners

Laravel Jobs

Senior Developer for a Algo Strategy Marketplace Startup
Mumbai
Tradetron
Software Engineer
Remote
Quartzy
Laravel Developer
South Florida (Remote considered)
Marine Connection
Senior Software Engineer - LAMP/PHP/MySQL/Laravel
Los Angeles / Remote
Ranker
Senior PHP/Laravel Developer: Your Dream Work Environment
Remote
iPhone Photography School
In-house Laravel Developer.
Gold Coast / Australia
MXstore
Laravel Developer
Oak Brook, IL
Tidal Commerce