DEV Community

Chamika Gayashan
Chamika Gayashan

Posted on

1

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!

AWS Security LIVE! Stream

Go beyond the firewall

Security starts with people. Discover solutions to real-world challenges from AWS and AWS Partners on AWS Security LIVE!

Learn More

Top comments (2)

Collapse
 
respect17 profile image
Kudzai Murimi

simply fixed! nice,

Collapse
 
chamikathereal profile image
Chamika Gayashan

Thank You!

Quickstart image

Django MongoDB Backend Quickstart! A Step-by-Step Tutorial

Get up and running with the new Django MongoDB Backend Python library! This tutorial covers creating a Django application, connecting it to MongoDB Atlas, performing CRUD operations, and configuring the Django admin for MongoDB.

Watch full video →

👋 Kindness is contagious

Dive into this thoughtful article, cherished within the supportive DEV Community. Coders of every background are encouraged to share and grow our collective expertise.

A genuine "thank you" can brighten someone’s day—drop your appreciation in the comments below!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found value here? A quick thank you to the author makes a big difference.

Okay