Reputation: 47
I am trying to use Laravel for the first time. I am trying to install it precisely as the guide says with composer but when I create a new project I get the following error:
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].
The project does get created, but when I type php artisan serve nothing happens. How can I fix this?
Upvotes: 1
Views: 1155
Reputation: 1128
You can solve the problem by editing your php.ini
file in your Windows, following these steps :
C:\Program Files\PHP\v7.4\php.ini
);
before the line extension=php_fileinfo.dll
. If you can't find this line, then simply add it after the others php extension.Upvotes: 1