Khi tôi chạy, composer updatetôi nhận được thông báo lỗi này:
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
Tôi cần làm gì để kích hoạt các lệnh zip và giải nén để nhà soạn nhạc có thể tải xuống các phụ thuộc?
composer update --prefer-sourceTôi gặp vấn đề này khi thửcomposer updatephpspec.Failed to download symfony/polyfill-ctype from dist: The zip extension and unzip command are both missing, skipping.Tôi đang dùng Mac và gặp sự cố khiến Homebrew hoạt động để cài đặt tiện ích mở rộng php. Vì vậy, cách khắc phục nhanh của tôi là buộccomposerkhông cần sử dụng zip bằng cách thêm tùy chọn --prefer-source. Điều này có nghĩa là nó tải xuống repo thay vì gói zip. Không phải là một giải pháp lâu dài nhưng tiện dụng để biết.