当我运行a时,出现composer update
以下错误消息:
Loading composer repositories with package information
Updating dependencies (including require-dev)
Failed to download psr/log from dist: The zip extension and unzip command are both missing, skipping.
The php.ini used by your command-line PHP is: /etc/php/7.0/cli/php.ini
Now trying to download from source
我需要做什么才能启用zip和unzip命令,以便作曲家可以下载依赖项?
composer update --prefer-source
尝试composer update
phpspec 时出现此问题。Failed to download symfony/polyfill-ctype from dist: The zip extension and unzip command are both missing, skipping.
我在Mac上,在使Homebrew能够安装php扩展程序时遇到问题。所以,我的速战速决是迫使composer
不是通过添加--prefer源选项需要使用拉链。这意味着它将下载存储库而不是压缩包。这不是一个长期的解决方案,但很容易知道。