composer install 错误

composer install

Loading composer repositories with package information

Installing dependencies (including require-dev) from lock file

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

  Problem 1

    - league/flysystem 1.0.53 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.

    - league/flysystem 1.0.53 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.

    - Installation request for league/flysystem 1.0.53 -> satisfiable by league/flysystem[1.0.53].

  To enable extensions, verify that they are enabled in your .ini files:

    - /usr/local/php/etc/php.ini

  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.



出现此错误的原因是php.ini中的fileinfo扩展没有开启,开启 extension=php_fileinfo.dll,再重新执行命令安装就可以了。

你可能感兴趣的:(composer install 错误)