How can I solve “laravel/horizon v1.1.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system”?

后端 未结 10 1080
抹茶落季
抹茶落季 2021-01-30 04:07

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

  Problem 1
    - Installation request for laravel/horizon v1.1.0 ->         


        
10条回答
  •  無奈伤痛
    2021-01-30 04:42

    As per the accepted answer, but you can add this to your composer.json so that you don't have to run --ignore-platform-reqs all the time

    "config": {
      "platform": {
        "ext-pcntl": "7.3",
        "ext-posix": "7.3"
      }
    }
    

提交回复
热议问题