Failed to decode response: zlib_decode(): data error
  • 13 Jan 2021
  • 1 Minute To Read
  • Print
  • Share
  • Dark
    Light

Failed to decode response: zlib_decode(): data error

  • Print
  • Share
  • Dark
    Light

Description

When running composer install or composer update, you might get the issue Failed to decode response: zlib_decode(): data error .

Solution

Change the composer configuration by running composer config -ge in the terminal and replacing the configuration with the following one

{
    "repositories": {
        "packagist": { "url": "https://packagist.org", "type": "composer" }
    }
}
Was This Article Helpful?