Your Composer dependencies require the following PHP extensions to be installed: pcntl

2020-12-17 12:33

阅读:709

标签:disco   orm   tps   dep   software   art   depend   upd   following   

 

问题原因是 Windows不支持pcntl库 ,参考 https://stackoverflow.com/questions/30045085/how-to-install-pcntl-extension-in-windows 

 

解决方案:

      https://stackoverflow.com/questions/48577465/how-can-i-solve-laravel-horizon-v1-1-0-requires-ext-pcntl-the-requested-ph 

   由于pcntl模块涉及到swoole依赖,本地测试可以先不管

 

 

参考 https://github.com/composer/composer/issues/9340 

 

问题分析:这个问题是laravel框架的问题,但是由于项目是早期版本开发的,所以laravel框架不能升级! 资料建议降低composer的版本

 

降低版本:composer self-update --1

 

忽略错误:composer install --ignore-platform-reqs

 

编译结果:

 

Discovered Package: nunomaduro/collision

 

Discovered Package: simplesoftwareio/simple-qrcode

 

Discovered Package: vinkla/hashids

 

Discovered Package: vladimir-yuldashev/laravel-queue-rabbitmq

 

Discovered Package: yansongda/laravel-pay

 

Discovered Package: zanysoft/laravel-zip

 

Package manifest generated successfully.

 

接下来再执行 php artisan make 的各种命令就正常了

 

   忽略错误:composer install --ignore-platform-reqs 

 

Your Composer dependencies require the following PHP extensions to be installed: pcntl

标签:disco   orm   tps   dep   software   art   depend   upd   following   

原文地址:https://www.cnblogs.com/wayne2018/p/14000797.html

上一篇:Wazuh连接外部的API

下一篇:c#学习02


评论


亲,登录后才可以留言!