Whenever I try to create a new project, I get this error. Any ideas on what it might be?
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]. To enable extensions, verify that they are enabled in your .ini files: - C:\PHP7\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.
Errors tell you exactly what happened.
laravel/framework requires flysystem. Flysystem requires PHP's fileinfo extension.
This appears to have been disabled.
Follow the prompts to go to your
php.ini
file (C:\PHP7\php.ini
) and editphp.ini
For example, use Notes This creates the file.CTRL F
and search forfileinfo
(if you want to be thorough withextension=php_fileinfo.dll
).It should be preceded by a semicolon (
;
), which means it is commented out and therefore disabled.Remove the semicolon and follow these steps again. It should work now.