Home > Software design >  Laravel project creation - Windows Platform
Laravel project creation - Windows Platform

Time:11-09

I tried to create a laravel proyect but it throws this error.

composer create-project laravel/laravel "path-directory" 4.2 --prefer-dist

Failed to extract laravel/laravel: (9) C:\oraclexe\app\oracle\product\11.2.0\server\bin\unzip.EXE

Script php artisan clear-compiled handling the post-update-cmd event returned with error code 1

Could you help me solve this, please?

CodePudding user response:

Have you tried laragon.org for windows development? It works pretty well.

CodePudding user response:

Thanks folks for the help.

I could solve this problem, uncommented in PHP.ini file, the following lines:

extension=fileinfo extension=mbstring

Then I ran the command again. (in PowerShell from Windows)

composer create-project laravel/laravel users

And it worked successfully. :)

CodePudding user response:

I could not still solve the problem....

I am using Git Bash (on Windows)

I changed the command to this:

composer create-project laravel/laravel users

And it tells on the console:

Problem 1 - laravel/framework[v8.65.0, ..., 8.x-dev] require league/flysystem ^1.1 -> satisfiable by league/flysystem[1.1.0, ..., 1.x-dev]. - league/flysystem[1.1.0, ..., 1.x-dev] require ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension. - Root composer.json requires laravel/framework ^8.65 -> satisfiable by laravel/framework[v8.65.0, ..., 8.x-dev].

  • Related