Update laravel/installer global

Updated: 20th December 2019
Tags: php composer laravel

1. Find out where is your global composer folder

composer global config home

You will get something like this

C:/Users/USER/AppData/Roaming/Composer

2. Update composer.json

Navigate to the path you’ve got in step 1.
Remove from composer.json laravel/installer and save file.

3. Run require command

composer global require laravel/installer

Troubleshooting

If you have some errors, delete composer.lock and vendor folder and run again the require command.