composer install error

When I typed "composer install" in the terminal, I got the following error message:

Problem 1
    - Installation request for league/flysystem 1.0.66 -> satisfiable by league/flysystem[1.0.66].
    - league/flysystem 1.0.66 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
  Problem 2
    - league/flysystem 1.0.66 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    - laravel/framework v5.8.37 requires league/flysystem ^1.0.8 -> satisfiable by league/flysystem[1.0.66].
    - Installation request for laravel/framework v5.8.37 -> satisfiable by laravel/framework[v5.8.37].

After investigating, it seems that this "extension file info" is the key.

extension=php_fileinfo.dll

Was to be enabled in php.ini, but in my case I didn't find it, so I added it to php.ini. Then I was able to install it safely.

Reference: https://qiita.com/sola-msr/items/95e06e66730468b6c7bc

Recommended Posts

composer install error
bundle install error
bundle install error
Mac Rails Install Error
Error when bundle install
Install Composer with Docker
Error when npm install on Windows 7
Differences between composer install update require
Laravel, composer install causes an error in PackageManifest, so resolve it
Eclipse error
Deployment error
Install RSpec
FindBugs-IDEA error
OwlgardenRPA --Install
Install qiita_org
Error in bundle install when running rails new
Error with bundle install after upgrading to Catalina