If you are facing an error like this when you install Laravel with this command, "composer global require laravel/installer"
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
.
Step 2:
Search for the following line: ;extension=zip
.
You can find out with crt + f and search.
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/installerNow you can create your own Laravel project and Good Luck!
Top comments (2)
simply fixed! nice,
Thank You!