amazon-web-services - UnexpectedValueException "... is not a zip archive"与 Composer

标签 amazon-web-services exception composer-php

在 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.  

到目前为止尝试过:
  • 我也试过另一个网络(WIFI),但仍然是同样的问题。
  • 清除 Composer 缓存
  • 最佳答案

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

        composer clear-cache
    
        composer global update
    

    关于amazon-web-services - UnexpectedValueException "... is not a zip archive"与 Composer ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61247712/

    相关文章:

    amazon-web-services - 如何使用AWS CLI在S3上创建 "folder-like"(即PREFIX)对象?

    python - 使用亚马逊产品广告 API 搜索图书 - Python

    python - 对于 SalesForce API,这两个异常是什么意思?

    composer-php - Doctrine ODM 与 symfony 3.0.*

    ios - 使用 Alamofire 将文件上传到 amazon s3

    php - 使用 Amazon SES sendRawEmail 进行电子邮件编码

    php - Composer 更新通过 puppet 超时运行

    c# - 为什么异常不会在 WPF 对话框关闭事件处理程序之外冒泡?

    exception - 引发异常