ZIP uncompress errors when installing/updating dependencies in Composer

The other day I ran into some strange problems with Composer.

  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.

The curpit of this problem steams from corrupt composer cache (if you don’t have networking problems of course).

The solution is simple, clear Composer’s global cache and update all globally installed packages:


composer clearcache ; composer global update