Yii2 failed to survive composer install on the server

Yii2 failed to survive composer install on the server

root@dv:/home/dv-sharp composer install
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 73 installs, 0 updates, 0 removals
    Failed to download composer/installers from dist: The zip extension and unzip command are both missing, skipping.
Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
    Now trying to download from source

has been changed to full image in China, but is it always the problem with php? What exactly is it? ask the boss for advice

Mar.05,2021

finally solved, not knowing that unzip is an installation package.
so,
execute the following command, you can:

apt install unzip

when composer is installed, you generally need to download the package and extract it, so you need to install the decompression program on the server

.
Menu