首页 > 解决方案 > UnexpectedValueException “...不是 zip 存档”与作曲家

问题描述

在 AWS 服务器上,我有一个测试环境并且运行良好,但是当我尝试部署新更改时突然出现以下错误(顺便说一句,与此同时,由于 HomeOffice,WIFI 已更改)

Unzip with unzip command failed, falling back to ZipArchive class
Install of mandrill/mandrill failed

[UnexpectedValueException]                                                                                                  
'/var/www/vhosts/testing4a.example.com/vendor/composer/3e7ad5f270bd79e05aa39b51b8a9cf24.zip' 
is not a zip archive.  

到目前为止尝试过:

  1. 我也尝试了另一个网络(WIFI),但仍然是同样的问题。
  2. 清除作曲家缓存

标签: amazon-web-servicesexceptioncomposer-php

解决方案


在这里解决了 https://github.com/composer/composer/issues/5982

尝试

    composer clear-cache
    composer global update

推荐阅读