查看: 58|回复: 0

composer require第三方包,错误To enable extensions, verify that they are

[复制链接]

73

主题

12

回帖

287

积分

青铜会员

Rank: 2

积分
287
威望
0
金币
61
鲜花(1) 鸡蛋(1)
发表于 2024-10-19 17:26:33 | 显示全部楼层 |阅读模式
composer require第三方包的时候,发生如下错误

  1. D:\study\shop>composer require laravel/jetstream
  2. Using version ^1.6 for laravel/jetstream
  3. ./composer.json has been updated
  4. Loading composer repositories with package information
  5. Updating dependencies (including require-dev)
  6. Your requirements could not be resolved to an installable set of packages.

  7.   Problem 1
  8.     - laravel/horizon v5.4.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
  9.     - laravel/horizon v5.4.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
  10.     - laravel/horizon v5.4.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
  11.     - Installation request for laravel/horizon (locked at v5.4.0, required as ^5.4) -> satisfiable by laravel/horizon[v5.4.0].

  12.   To enable extensions, verify that they are enabled in your .ini files:
  13.     - D:\phpstudy_pro\Extensions\php\php7.4.3nts\php.ini
  14.   You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

  15. Installation failed, reverting ./composer.json to its original content.
复制代码



解决方法
带上引包的时候带上--ignore-platform-reqs

  1. composer require laravel/jetstream --ignore-platform-reqs
复制代码
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表