[FuelPHP] composer updateでfuelphp/upload 2.0.6のアップデートエラーが出るとき

FuelPHPのフレームワーク使用時にcomposer updateを実行した際、下記のエラーがでてパッケージをアップデートできない場合があります。

> composer update

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

  Problem 1
    - fuelphp/upload 2.0.6 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    - fuelphp/upload 2.0.6 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    - Installation request for fuelphp/upload 2.0.6 -> satisfiable by fuelphp/upload[2.0.6].

  To enable extensions, verify that they are enabled in your .ini files:
    - C:\path\to\php.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

上記のエラーはphp自体の環境でphp_fileinfoのエクステンションが有効になっていない場合に出力されるエラーです。この場合は、エラーメッセージにある通りphp.iniの下記設定を変更することでcomposer updateが可能になります。

;extension=php_fileinfo.dll



extension=php_fileinfo.dll

関連記事

コメントを残す

メールアドレスが公開されることはありません。