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

前端 未结 6 1513
猫巷女王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: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
    

提交回复
热议问题