Skip to content
Advertisement

Composer Requirements could not be resolved to an installable set of packages. -kreait/laravel-firebase

Composer has been installed with laravel. However, each command is resulting into failing with the error message below.

$ composer require kreait/laravel-firebase
Using version ^3.1 for kreait/laravel-firebase
./composer.json has been updated
Running composer update kreait/laravel-firebase
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - laravel/framework[v8.54.0, ..., 8.x-dev] require league/flysystem ^1.1 -> satisfiable by league/flysystem[1.1.0, ..., 1.x-dev].
    - league/flysystem[1.1.0, ..., 1.x-dev] require ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
    - Root composer.json requires laravel/framework ^8.54 -> satisfiable by laravel/framework[v8.54.0, ..., 8.x-dev].

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

Installation failed, reverting ./composer.json to its original content.

Advertisement

Answer

You have a missing extension fileinfo if you running on windows all you need is to find php.ini and uncomment this line

extension=php_fileinfo.dl

if you run on Linux-based you will need to install it like this

sudo apt install php-fileinfo
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement