I tried to install Laravel 9 on Windows, but these errors kept showing up. I have PHP 8.0.9 and Composer v2.2.9 installed. What should I do?
Your requirements could not resolved to an installable set of packages Problem 1 - laravel/framework[v9.2.0, ..., 9.x-dev] require league/flysystem ^3.0 -> satisfiable by league/flysystem[3.0.0, ..., 3.x-dev]. - league/flysystem[3.0.0, ..., 3.x-dev] require league/mime-type-detection ^1.0.0 -> satisfiable by league/mime-type-detection[1.0.0, ..., 1.9.0]. - league/mime-type-detection[1.0.0, ..., 1.3.0] require php ^7.2 -> your php version (8.0.9) does not satisfy that requirement. - league/mime-type-detection[1.4.0, ..., 1.9.0] require ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension. - Root composer.json requires laravel/framework ^9.2 -> satisfiable by laravel/framework[v9.2.0, ..., 9.x-dev].
To enable extensions, verify that they are enabled in your .ini files: - C:\Program Files\PHP\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.
CodePudding user response:
You don't have the proper php extensions activated:
league/mime-type-detection[1.4.0, ..., 1.9.0] require ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
Just uncomment ext-fileinfo
in your php.ini and it should work.
CodePudding user response:
set below code in your C:\php\php.ini file and uncommented this line enter image description here