Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

php

laravel

I use 5.7v Laravel and 7.2.1v PHP and composer last version, but when I like to create new project these errors appeared:

Your requirements could not be resolved to an installable set of packages.  Problem 1     - Installation request for league/flysystem 1.0.47 -> satisfiable by league/flysystem[1.0.47].      - league/flysystem 1.0.47 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system. Problem 2       - league/flysystem 1.0.47 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.       - laravel/framework v5.7.9 requires league/flysystem ^1.0.8 -> satisfiable by league/flysystem[1.0.47]. 0      - Installation request for laravel/framework v5.7.9 -> satisfiable by laravel/framework[v5.7.9].  To enable extensions, verify that they are enabled in your .ini files:     - C:\php-7\php.ini You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.` 
like image 581
Seyed Masih Tabaei Avatar asked Oct 10 '18 07:10

Seyed Masih Tabaei


People also ask

How do I create a composer JSON file?

To configure Composer for your PHP app json file specifies required packages. Verify that a composer. json file is present in the root of your git repository. Run composer install (on your local machine) to install the required packages and generate a composer.

How do I update my composer?

To update Composer itself to the latest version, run the self-update command. It will replace your composer.phar with the latest version. If Composer was not installed as a PHAR, this command is not available. (This is sometimes the case when Composer was installed by an operating system package manager.)


1 Answers

First of all, stop the XAMPP/Wamp and then kindly remove the starting semicolon ( ; ) from your xampp\php\php.ini the following code.

;extension=fileinfo 

or in windows with IIS

extension=php_fileinfo.dll 

And then restart your XAMPP/Wamp.


NOTE: For Windows, you can find the file in the C:\xampp\php\php.ini-Folder (Windows) or in the etc-Folder (within the xampp-Folder).

like image 86
Udhav Sarvaiya Avatar answered Sep 25 '22 09:09

Udhav Sarvaiya