۱ احسان پژمان
خطا هنگام نصب لاراول
جامعه پی اچ پی ایجاد شده در ۰۸ خرداد ۱۴۰۲

سلام وقتتون بخیر من هنگام نصب لارال این خظاهارو دارم

Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - laravel/framework[v10.10.0, ..., v10.12.0] require league/flysystem ^3.8.0 -> satisfiable by league/flysystem[3.8.0, ..., 3.15.1].
    - league/flysystem[3.3.0, ..., 3.14.0] require league/mime-type-detection ^1.0.0 -> satisfiable by league/mime-type-detection[1.0.0, ..., 1.11.0].
    - league/flysystem[3.15.0, ..., 3.15.1] require league/flysystem-local ^3.0.0 -> satisfiable by league/flysystem-local[3.15.0].
    - league/mime-type-detection[1.0.0, ..., 1.3.0] require php ^7.2 -> your php version (8.1.13) does not satisfy that requirement.
    - league/mime-type-detection[1.4.0, ..., 1.11.0] require ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
    - league/flysystem-local 3.15.0 require ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
    - Root composer.json requires laravel/framework ^10.10 -> satisfiable by lar
To enable extensions, verify that they are enabled in your .ini files:
    - C:\\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

ورژن php

php -v
PHP 8.1.13 (cli) (built: Nov 22 2022 15:49:14) (ZTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.1.13, Copyright (c) Zend Technologies
    with Xdebug v3.2.0, Copyright (c) 2002-2022, by Derick Rethans

اکستنش فایل اینفو هم فعال بود توی فایل php,ini بازم مشکل حل نشد ...

سلام احسان عزیز

ورژن php رو در فایل conposer.json از ۷.۲ به ۸.۱ تغییر بدید یا دستور رو با آرگومان زیر بزنید تا این موارد نادیده گرفته بشه:

--ignore-platform-req=ext-fileinfo


بهترین پاسخ
احمدرضا فاطمی کیا ۰۸ خرداد ۱۴۰۲، ۱۱:۰۳