Your requirements could not be resolved to an installable set of packages for laravel

前端 未结 6 1494
猫巷女王i
猫巷女王i 2021-02-05 05:01

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         


        
相关标签:
6条回答
  • 2021-02-05 05:44

    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).

    0 讨论(0)
  • 2021-02-05 05:47

    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...

    0 讨论(0)
  • 2021-02-05 05:49

    Just uncomment extension=fileinfo in php.ini it worked for me even without xampp

    0 讨论(0)
  • 2021-02-05 05:52

    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
    
    0 讨论(0)
  • 2021-02-05 05:56

    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,

    1. Deleted C:/php/
    2. Changed my path to PHP to point to c:/xampp/php/

    The problem is now resolved

    0 讨论(0)
  • 2021-02-05 05:58

    In my case I just uncomment extension=fileinfo in php.ini then it works

    0 讨论(0)
提交回复
热议问题