search

Home  >  Q&A  >  body text

Error while creating new laravel project

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粉321584263P粉321584263305 days ago484

reply all(1)I'll reply

  • P粉005134685

    P粉0051346852024-03-27 00:08:04

    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.

    reply
    0
  • Cancelreply