Error while creating new laravel project
P粉321584263
P粉321584263 2024-03-26 08:47:26
0
1
439

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.

P粉321584263
P粉321584263

reply all(1)
P粉005134685

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 edit php.ini For example, use Notes This creates the file. CTRL F and search for fileinfo (if you want to be thorough with extension=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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template