错误:运行composer安装时:“提取zip文件需要ziparchive”;和爸爸_OS21宇宙

jbose2ul  于 2021-09-29  发布在  Java
关注(0)|答案(1)|浏览(381)

此问题已在此处找到答案

如何使用centos 7在PHP7.2上安装ziparchive((七个答案)
昨天关门了。
当我在项目文件夹的根目录下运行composer install时,我得到以下输出:

 diorcula  ~  Documents  WORK  pointbreak-develop  composer install
> curl https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar --create-dirs -o bin/wp-cli.phar
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 5951k  100 5951k    0     0  8478k      0 --:--:-- --:--:-- --:--:-- 8466k
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Nothing to install, update or remove
Generating autoload files
8 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

> php bin/wp-cli.phar core download --locale=en_AU --skip-content --force
Downloading WordPress 5.8 (en_AU)...
Error: Extracting a zip file requires ZipArchive.
Script php bin/wp-cli.phar core download --locale=en_AU --skip-content --force handling the post-install-cmd event returned with error code 1

更多信息:
php版本:7.4.16
wp cli版本2.5.0
砰_操作系统版本21.04(基于debian的发行版)

ldioqlga

ldioqlga1#

作为用户https://stackoverflow.com/users/2453432/magnus-eriksson 及https://stackoverflow.com/users/6001936/wayneos 回答与缺少扩展有关,并使用以下方法安装: apt-get install php-zip 我成功了!

相关问题