When I run composer install on command promp, there exist error like this :

  Problem 1
    - Installation request for laravel/horizon v1.1.0 -> satisfiable by laravel/horizon[v1.1.0].
    - laravel/horizon v1.1.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.

  To enable extensions, verify that they are enabled in your .ini files:
    - C:\xampp-7.1\php\php.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

我如何解决这个错误?

推荐答案

Run composer with the --ignore-platform-reqs option and specify pcntl and posix

composer install --ignore-platform-reqs

Laravel相关问答推荐

Laravel Livewire与自定义JS有关的多姆问题

Laravel:如何从不断更新的Controller中分页数据

警告:构建Reaction App(VITE)后无法解码下载的字体警告

Laravel:通过数据透视表数据限制多对多Eager 加载

验证判断请求的值是否存在于另一个表 Laravel 9 中

Laravel:在行的子集上同步多对多

如何在自定义表单请求中获取错误验证数据

Laravel 5 如何配置 Queue 数据库驱动程序以连接到非默认数据库?

Laravel 5 如何全局设置 Cache-Control HTTP 标头?

判断 Laravel 模型表中是否存在列,然后应用条件

Laravel 5.4 LengthAwarePaginator

Laravel whereDoesntHave() - 多个 OR 条件

Laravel 初学者的良好开端

在 Laravel 5.4 中将文件存储在公共目录和存储中的区别

向 Laravel 重定向添加一个锚点

Laravel 5 默认注册后如何发送邮件?

为什么 phpunit 没有得到 phpunit.xml 中指定的正确 APP_ENV?

如何从 PHPUnit 测试设置运行 Laravel 数据库 seeder 机?

以编程方式而不是从 CLI 运行 Laravel 5 seeder

如果参数不是整数,如何以不同方式定义路由