composer报错the requested PHP extension pcntl is missing from your system

解决方法:
在composer.json中增加

"config": {

"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true,
"platform": {
"ext-pcntl": "7.2",
"ext-posix": "7.2"
}


},

 

posted @ 2020-04-08 11:09  sea24  阅读(535)  评论(0)    收藏  举报