I have this error in my system and I have not found the solution, could you help me
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/framework[v9.36.4, ..., v9.51.0] require league/flysystem ^3.8.0 -> satisfiable by league/flysystem[3.8.0, ..., 3.12.2].
- laravel/framework[v9.19.0, ..., v9.36.3] require league/flysystem ^3.0.16 -> satisfiable by league/flysystem[3.0.16, ..., 3.12.2].
- league/flysystem[3.0.16, ..., 3.12.2] require league/mime-type-detection ^1.0.0 -> satisfiable by league/mime-type-detection[1.0.0, ..., 1.11.0].
- league/mime-type-detection[1.0.0, ..., 1.3.0] require php ^7.2 -> your php version (8.0.27) does not satisfy that requirement.
- league/mime-type-detection[1.4.0, ..., 1.11.0] require ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
- Root composer.json requires laravel/framework ^9.19 -> satisfiable by laravel/framework[v9.19.0, ..., v9.51.0].
To enable extensions, verify that they are enabled in your .ini files:
- C:\Program Files\php-8.0.27\php.ini
You can also run php --ini in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with --ignore-platform-req=ext-fileinfo to temporarily ignore these required extensions.
thanks
Configuration File (php.ini) Path:
Loaded Configuration File: C:\Program Files\php-8.0.27\php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)
Try to uncomment string "extension=fileinfo" in your php.ini file.
Related
I'm trying to create new laravel project, but it says the following when I run laravel new laragigs
Creating a "laravel/laravel" project at "./laragigs"
Installing laravel/laravel (v9.5.2)
- Installing laravel/laravel (v9.5.2): Extracting archive
Created project in C:\Users\Omistaja\Desktop/laragigs
> #php -r "file_exists('.env') || copy('.env.example', '.env');"
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/framework[v9.36.4, ..., v9.51.0] require league/flysystem ^3.8.0 -> satisfiable by league/flysystem[3.8.0, ..., 3.12.2].
- laravel/framework[v9.19.0, ..., v9.36.3] require league/flysystem ^3.0.16 -> satisfiable by league/flysystem[3.0.16, ..., 3.12.2].
- league/flysystem[3.0.16, ..., 3.12.2] require league/mime-type-detection ^1.0.0 -> satisfiable by league/mime-type-detection[1.0.0, ..., 1.11.0].
- league/mime-type-detection[1.0.0, ..., 1.3.0] require php ^7.2 -> your php version (8.2.2) does not satisfy that requirement.
- league/mime-type-detection[1.4.0, ..., 1.11.0] require ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
- Root composer.json requires laravel/framework ^9.19 -> satisfiable by laravel/framework[v9.19.0, ..., v9.51.0].
To enable extensions, verify that they are enabled in your .ini files:
- C:\Program Files\php\php-8.2.2-nts-Win32-vs16-x86\php.ini
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-fileinfo` to temporarily ignore these required extensions.
PS C:\Users\Omistaja\Desktop>
What hould I do?
Adding the extension=php_fileinfo.dll to php.ini worked.
It worked fine, but after I installed the cURL in my machine (Windows10), I started to deal with this issue every time I tried to create a Laravel project.
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/framework[v9.36.4, ..., 9.x-dev] require league/flysystem ^3.8.0 -> satisfiable by league/flysystem[3.8.0, ..., 3.x-dev].
- laravel/framework[v9.19.0, ..., v9.36.3] require league/flysystem ^3.0.16 -> satisfiable by league/flysystem[3.0.16, ..., 3.x-dev].
- league/flysystem[3.0.16, ..., 3.x-dev] require league/mime-type-detection ^1.0.0 -> satisfiable by league/mime-type-detection[1.0.0, ..., 1.11.0].
- league/mime-type-detection[1.0.0, ..., 1.3.0] require php ^7.2 -> your php version (8.1.12) does not satisfy that requirement.
- league/mime-type-detection[1.4.0, ..., 1.11.0] require ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
- Root composer.json requires laravel/framework ^9.19 -> satisfiable by laravel/framework[v9.19.0, ..., 9.x-dev].
To enable extensions, verify that they are enabled in your .ini files:
- C:\Program Files\php-8.1.12\php.ini
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-fileinfo` to temporarily ignore these required extensions.
I Tried to uncomment this command 'extension=openssl' in php.ini
I also executed this command 'composer config -g -- disable-tls false' but nothing has changed .
This is the errors i get;
Problem 1
- league/flysystem is locked to version 1.1.9 and an update of this package was not requested.
- league/flysystem 1.1.9 requires ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
Problem 2
- league/mime-type-detection is locked to version 1.9.0 and an update of this package was not requested.
- league/mime-type-detection 1.9.0 requires ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
Problem 3
- league/flysystem 1.1.9 requires ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
- laravel/framework v8.83.5 requires league/flysystem ^1.1 -> satisfiable by league/flysystem[1.1.9].
- laravel/framework is locked to version v8.83.5 and an update of this package was not requested.
and in the end i get suggested
You can also run php --ini in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with --ignore-platform-req=ext-fileinfo --ignore-platform-req=ext-fileinfo --ignore-platform-req=ext-fileinfo to temporarily ignore these required extensions.
i am having a hard time accessing the php.ini and finding the line most suggest to uncomment it.
After composer update i get;
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/framework[v8.75.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.75 -> satisfiable by laravel/framework[v8.75.0, ..., 8.x-dev].
I am learning to create projects with laravel, I am using PHP 8. When creating a new project through "laravel new project".I got this error and vendor folder is missiing in that project.
composer create-project laravel/laravel new-project - laravel/framework[v8.65.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.65 -> satisfiable by laravel/framework[v8.65.0, ..., 8.x-dev].
To enable extensions, verify that they are enabled in your .ini files:
- C:\Program Files\php-8.0.12\php.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
removing ; before extension = fileinfo from php.ini inside PHP folder in this path "C:\Program Files\php-8.0.12/" but I didn't remove it from "C:\Program Files\php-8.0.12/php.ini".
On this file C:\Program Files\php-8.0.12\php.ini add this line:
extension=php_fileinfo.dll
This should enable the missing extension on the system.
Hi There im trying to create a project using laravel, but i get this error when doing it.
PS X:\projects> composer create-project laravel/laravel MuxlyRadio
Installing laravel/laravel (v8.5.12)
- Installing laravel/laravel (v8.5.12): Extracting archive
Created project in X:\projects\MuxlyRadio
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.12.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.12 -> satisfiable by laravel/framework[v8.12.0, ..., 8.x-dev].
To enable extensions, verify that they are enabled in your .ini files:
- C:\Program Files (x86)\PHP\v7.4\php.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
PS X:\projects>
anyone any idea how to fix this?
Open your php.ini and enable PHP's fileinfo extension by uncommenting :
extension=php_fileinfo.dll
Depending your os you can find info writing in your index.php or somewhere to learn more
phpinfo();