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

后端 未结 10 967
抹茶落季
抹茶落季 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:54

    I have installed PHP 7.2 instead of 7.1 and everything works fine now. It appears that pcntl was not present in 7.1 but it's installed with php 7.2.

    0 讨论(0)
  • 2021-01-30 04:56

    Just run the following:

    composer install --ignore-platform-reqs

    Note: pcntl is not supported on Windows

    0 讨论(0)
  • 2021-01-30 05:02

    install horizon this way :

    composer require laravel/horizon --ignore-platform-reqs
    

    then run

    php artisan horizon:install
    
    0 讨论(0)
  • 2021-01-30 05:04

    I have some problem and composer install --ignore-platform-reqs works for me

    Thanks

    0 讨论(0)
提交回复
热议问题