按命令安装失败,能看看啥问题?

leeseean

λ composer require -W webman/admin
./composer.json has been created
Running composer update webman/admin --with-all-dependencies
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1

  • webman/admin[v0.5.0, ..., v0.6.14] require intervention/image ^2.7 -> satisfiable by intervention/image[2.7.0, 2.7.1, 2.7.2].
  • intervention/image[2.7.0, ..., 2.7.2] require ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
  • Root composer.json requires webman/admin * -> satisfiable by webman/admin[v0.5.0, ..., v0.6.14].

To enable extensions, verify that they are enabled in your .ini files:

  • D:\PHP work\php8.2.7\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 webman/admin:*" to figure out if any version is installable, or "composer require webman/admin:^2.1" if you know which you need.

Installation failed, deleting ./composer.json.

721 1 0
1个回答

胡桃

composer命令加上--ignore-platform-reqs参数

  • 暂无评论
年代过于久远,无法发表回答
×
🔝