@Nik32

Как исправить ошибки при выполнение composer require laravel/ui?

Как избавиться от ошибок при выполнении команды "composer require laravel/ui"? Выдаёт следующее:

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

  Problem 1
    - league/mime-type-detection 1.11.0 requires ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
    - laravel/framework v10.2.0 requires league/flysystem ^3.8.0 -> satisfiable by league/flysystem[3.12.3].
    - league/flysystem 3.12.3 requires league/mime-type-detection ^1.0.0 -> satisfiable by league/mime-type-detection[1.11.0].
    - laravel/framework is locked to version v10.2.0 and an update of this package was not requested.

To enable extensions, verify that they are enabled in your .ini files:
    - C:\PHP-8.2\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 laravel/ui:*" to figure out if any version is installable, or "composer require laravel/ui:^2.1" if you know which you need.   

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
  • Вопрос задан
  • 1304 просмотра
Решения вопроса 1
- league/mime-type-detection 1.11.0 requires ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.

Надо установить модуль ext-fileinfo, откройте php.ini и замените
;extension=fileinfo
на
extension=fileinfo

По идее остальные ошибки должны уйти, если нет, то смотрите какие зависимости требуются и откатывайте/обновляйте пакеты до требуемых версий.
Ответ написан
Комментировать
Пригласить эксперта
Ответы на вопрос 1
Sanes
@Sanes
requires ext-fileinfo
Добавьте модуль в PHP
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы