Composer error `Failed to decode response: zlib_decode(): data error`

If you are running on Vagrant / VirtualBox it could be because you are running Virtual box 5.1.8 which has a bug with NFS file system. Upgrade VirtualBox to fix the problem:

source