windows中Laravel/horizon包因pcntl问题无法安装

网上有以下方法:

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

重点是如上修改composer.json后需要使用composer update命令,而不是继续用composer install

Comments

No comments yet. Why don’t you start the discussion?

发表回复