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

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

    If you're running on windows 10 without homestead you can enable the linux subsystem and run horizon through that.

    https://www.windowscentral.com/how-install-bash-shell-command-line-windows-10

    Then install the requirements

    sudo apt install php7.2-fpm php7.2-mbstring php7.2-xmlrpc php7.2-soap php7.2-gd php7.2-xml php7.2-cli php7.2-zip php7.2-mysql
    

    This also can run laravel envoy too which doesn't work on windows.

    It's a nice lightweight solution

提交回复
热议问题