问题原因是 Windows不支持pcntl库 ,参考 https://*.com/questions/30045085/how-to-install-pcntl-extension-in-windows
解决方案:
由于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