DEV Community

Chamika Gayashan
Chamika Gayashan

Posted on

laravel/installer Error

If you are facing an error like this when you install Laravel with this command, "composer global require laravel/installer"

Failed to download doctrine/inflector from dist:

Follow this steps to fix this error.

First of all we have to Enable the ZIP extension in PHP. and after that i'll guide you setp by step.

Step 1:
Open your php.ini file located in C:\xampp\php\php.ini.

php.ini file

Step 2:
Search for the following line: ;extension=zip.
You can find out with crt + f and search.

Find out

Step 3:
Remove the semicolon ; to uncomment the line so it becomes: extension=zip.

Step 4:
Save the file and restart XAMPP (Apache).

Suppose you have done all the steps completely Congratulations. now you can run the command "composer global require laravel/installer" to install Laravel.

In the end, if you got this message,

laravel/installer

laravel/installerNow you can create your own Laravel project and Good Luck!

Top comments (1)

Collapse
 
respect17 profile image
Kudzai Murimi

simply fixed! nice,