samedi 22 janvier 2022

Get error when composer create-project --prefer-dist laravel/laravel laravel-essentials

My system is Windows 11. I am a new learner for Laravel and I am following the guidance to set up my working environments. I create my Laravel follow the steps as below.. then I get error.

Step 1: Download PHP and save it in the folder C:\Program Files\php, sent the path to this folder.

Step 2: Download Composer and save it in the folder C:\Program Files\php\php.exe

Step 3: Download vagrant and virtualbox. Then run those lines in the command

C:\Users\mreal>vagrant box add laravel/homestead --box-version 8.1.0
==> box: Loading metadata for box 'laravel/homestead'
    box: URL: https://vagrantcloud.com/laravel/homestead
This box can work with multiple providers! The providers that it
can work with are listed below. Please review the list and choose
the provider you will be working with.

1) hyperv
2) parallels
3) virtualbox
4) vmware_desktop

Enter your choice: 3
==> box: Adding box 'laravel/homestead' (v8.1.0) for provider: virtualbox
    box: Downloading: https://vagrantcloud.com/laravel/boxes/homestead/versions/8.1.0/providers/virtualbox.box
==> box: Box download is resuming from prior download progress
    box:
==> box: Successfully added box 'laravel/homestead' (v8.1.0) for 'virtualbox'!

Step 4: Create laravel and I get error

C:\Users\mreal>composer create-project --prefer-dist laravel/laravel laravel-essentials
Creating a "laravel/laravel" project at "./laravel-essentials"
Installing laravel/laravel (v8.6.10)
  - Installing laravel/laravel (v8.6.10): Extracting archive
Created project in C:\Users\mreal\laravel-essentials
> @php -r "file_exists('.env') || copy('.env.example', '.env');"
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  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:\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.


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3AqYq0M
via IFTTT

Aucun commentaire:

Enregistrer un commentaire