0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Composerで[ Composer with `--ignore-platform-req=ext-fileinfo`]エラー解消方法

0
Last updated at Posted at 2023-01-29

エラー内容

composer installでエラー内容:

Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.

  Problem 1
    - league/mime-type-detection is locked to version 1.11.0 and an update of this package was not requested.
    - league/mime-type-detection 1.11.0 requires ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
  Problem 2
    - league/mime-type-detection 1.11.0 requires ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
    - livewire/livewire v2.11.0 requires league/mime-type-detection ^1.9 -> satisfiable by league/mime-type-detection[1.11.0].
    - livewire/livewire is locked to version v2.11.0 and an update of this package was not requested.

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 temporarily ignore these required extensions.

composer updateでエラー内容:

Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - 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.
    - livewire/livewire[v2.11.0, ..., v2.11.1] require league/mime-type-detection ^1.9 -> satisfiable by league/mime-type-detection[1.9.0, 1.10.0, 1.11.0].
    - Root composer.json requires livewire/livewire ^2.11 -> satisfiable by livewire/livewire[v2.11.0, v2.11.1].

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 temporarily ignore these required extensions.

Use the option --with-all-dependen-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

エラー解消方法/ PHPのiniファイルを変更

php.ini
extension=fileinfo
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?