Mpdf: problems when composer installing

Created on 10 Jul 2016  路  5Comments  路  Source: mpdf/mpdf

Hello,

everytime I install the mpdf via composer install, or update or similar, I get this output:

  - Installing mpdf/mpdf (v6.1.1)
    Loading from cache
    Invalid zip file, retrying...
  - Installing mpdf/mpdf (v6.1.1)
    Loading from cache
    Invalid zip file, retrying...
  - Installing mpdf/mpdf (v6.1.1)
    Loading from cache
    Failed to download mpdf/mpdf from dist: '/Users/huglester/Projects/app-ar/vendor/mpdf/mpdf/36c654656432689ebb3cbfc7b98b3574' is not a zip archive.
Failed to execute unzip '/Users/huglester/Projects/app-ar/vendor/mpdf/mpdf/36c654656432689ebb3cbfc7b98b3574' -d '/Users/huglester/Projects/app-ar/vendor/composer/eceefda3' && chmod -R u+w '/Users/huglester/Projects/app-ar/vendor/composer/eceefda3'

  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /Users/huglester/Projects/app-ar/vendor/mpdf/mpdf/36c654656432689ebb3cbfc7b98b3574 or
        /Users/huglester/Projects/app-ar/vendor/mpdf/mpdf/36c654656432689ebb3cbfc7b98b3574.zip, and cannot find /Users/huglester/Projects/app-ar/vendor/mpdf/mpdf/36c654656432689ebb3cbfc7b98b3574.ZIP, period.
    Now trying to download from source
  - Installing mpdf/mpdf (v6.1.1)
    Cloning 9116f8b28e86d1eaf858d1a4623d26a910441672

It installs at the end, but there are some problems. Maybe tags not working?
I really have no idea why is that.

At the end it installs, but usually picking up a zipped tag is WAY faster.

Thank you

Most helpful comment

Did you try composer clear-cache? It seems you have a corrupt cached ZIP file.

All 5 comments

Did you try composer clear-cache? It seems you have a corrupt cached ZIP file.

Closing as stale.

Was facing the same problem trying to install a totally different package and composer clear-cache and then re-running the install fixed it. thanks @finwe

Did you try composer clear-cache? It seems you have a corrupt cached ZIP file.

Then, you have to try composer global update.

try to composer update mpdf/mpdf .

Was this page helpful?
0 / 5 - 0 ratings