I use 5.7v Laravel and 7.2.1v PHP and composer last version, but when I like to create new project these errors appeared:
Your requirements could not be resolved
First of all, stop the XAMPP/Wamp and then kindly remove the starting semicolon ( ;
) from your xampp\php\php.ini the following code.
;extension=fileinfo
or in windows with IIS
extension=php_fileinfo.dll
And then restart your XAMPP/Wamp.
NOTE: For Windows, you can find the file in the C:\xampp\php\php.ini-Folder (Windows) or in the etc-Folder (within the xampp-Folder).
in my case i am using window machine ...my league/flysystem is missing .. type this command in cmd on project Dir.. composer require league/flysystem
for mine case its work...
Just uncomment extension=fileinfo
in php.ini
it worked for me even without xampp
The problem seems to be what the error message says - your system is missing fileinfo PHP extension.
Since you're on Windows, open C:\php-7\php.ini file, search for the following line, and remove the beginning ;
if exists:
extension=fileinfo
or in windows with IIS
extension=php_fileinfo.dll
In my case, I had both installed PHP and XAMPP and in my path, i pointed at C:/php/
as the PHP interpreter. In C:/php/php.ini
, it was ;extension=fileinfo
whereas in C:/xampp/php/php.ini
it was extension=fileinfo
. I did two changes,
C:/php/
c:/xampp/php/
The problem is now resolved
In my case I just uncomment extension=fileinfo
in php.ini
then it works