I have ext-fileinfo but Composer says it is missing

前端 未结 9 1639
旧时难觅i
旧时难觅i 2020-12-03 05:12

I\'m trying to install Laravel package Intervention Image and when I run composer update:

Your requirements could not be resolved to an installa         


        
9条回答
  •  甜味超标
    2020-12-03 05:27

    For me it was different using php 7.4.x and Windows 10.

    I checked which php.ini file is used by PHP in CLI mode with php --ini.

    It showed C:\php7\php.ini - where I previously unzipped PHP (and also pointed Composer there).

    Then I needed to uncomment extension=fileinfo in that file.

提交回复
热议问题