Trouble installing Laravel? You may need to update your composer.json file
Published on by Eric L. Barnes
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
:
You can see the complete changelog here.
Eric is the creator of Laravel News and has been covering Laravel since 2012.