Problems occurred when installing first laravel app [duplicate] - Hack The Tech - Latest News related to Computer and Technology

Hack The Tech - Latest News related to Computer and Technology

Get Daily Latest News related to Computer and Technology and hack the world.

Wednesday, July 12, 2023

Problems occurred when installing first laravel app [duplicate]

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - laravel/sail is locked to version v1.23.0 and an update of this package was not requested.
    - laravel/sail v1.23.0 requires php ^8.0 -> your php version (7.4; overridden via config.platform, actual: 7.3.10) does not satisfy that requirement.
  Problem 2
    - league/flysystem 1.1.10 requires ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
    - laravel/framework v8.83.27 requires league/flysystem ^1.1 -> satisfiable by league/flysystem[1.1.10].
    - laravel/framework is locked to version v8.83.27 and an update of this package was not requested.

To enable extensions, verify that they are enabled in your .ini files:
    - C:\AppServ\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.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require symfony/twig-pack:*" to figure out if any version is installable, or "composer require symfony/twig-pack:^2.1" if you know which you need.

I am trying to create a new laravel app by running composer global require laravel/installer followed by laravel new demo-app then the above error occurred. I am trying to configure the version of PHP but I am not sure where to figure out the problems inside the app installation.



source https://stackoverflow.com/questions/76662073/problems-occurred-when-installing-first-laravel-app

No comments:

Post a Comment