Knowledge Base

Empty filter

Laravel installer wizard

composer global require laravel/installer


laravel new myproject

---
laravel --version
composer global update laravel/installer

laravel new myproject --interactive

----
composer global remove laravel/installer

composer global require laravel/installer

***
Step 1: Remove the Laravel Installer Completely
composer global remove laravel/installer

After that, manually delete the following files to ensure no old versions remain:

Delete Laravel Installer Binary:

C:\Users\pmarjanovic\AppData\Roaming\Composer\vendor\bin\laravel
C:\Users\pmarjanovic\AppData\Roaming\Composer\vendor\bin\laravel.bat

Delete Laravel Installer Folder:

C:\Users\pmarjanovic\AppData\Roaming\Composer\vendor\laravel\installer

Delete Global Composer composer.lock and composer.json:

C:\Users\pmarjanovic\AppData\Roaming\Composer\composer.json
C:\Users\pmarjanovic\AppData\Roaming\Composer\composer.lock

✅ Step 2: Clear Composer Cache
composer clear-cache

✅ Step 3: Force Install the Latest Laravel Installer
Now, install the latest version:

composer global require laravel/installer --with-dependencies

✅ Step 4: Verify the Installed Version
Check the version again:

laravel --version


✅ Step 5: Restart Your Terminal and Try Again
Close Command Prompt completely and reopen it. Then, try:

laravel new myproject
***

Published
Back to Index