首頁 >後端開發 >php教程 >composer install错误怎么办

composer install错误怎么办

PHPz
PHPz原創
2016-06-06 20:29:034863瀏覽

composer install错误的解决办法:首先打开终端命令窗口;然后通过“rm -f composer.lock”命令删除“composer.lock”;最后执行“composer install”命令即可。

composer install错误怎么办

composer install错误怎么办?

执行composer install 报错的解决办法

执行composer install后报以下错误:

Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/horizon v1.4.3 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
- laravel/horizon v1.4.3 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system.
- Installation request for laravel/horizon v1.4.3 -> satisfiable by laravel/horizon[v1.4.3].

 解决办法:

rm -f composer.lock

再次执行composer install

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn