Reputation: 10030
I am facing a problem in my Composer installation. A few days back, it was working fine but now, it gives the following error:
Failed to decode response: zlib_decode(): data error
Retrying with degraded mode, check https://getcomposer.org/doc/articles/troubleshooting.md#degraded-mode for more info
The degraded mode doesn't work too. I have searched around the web. Add http-secure
config, tried upgrading, tried using composer.phar manually, tried adding repositories property to config but nothing worked.
I am using Windows. composer --version
gives:
Composer version 1.0-dev (e8abc90b923250527a2d68712b663f0f41790594) 2016-03-09 11:44:27
Upvotes: 0
Views: 2828
Reputation: 941
I have been facing a similar problem when I was trying to install a package in Laravel. Simply add below lines in composer.json and everything will work like a charm. It helped me hope it helps!
"repositories": [
{
"type": "composer",
"url": "https://packagist.org"
},
{ "packagist": false }
]
Upvotes: 1
Reputation: 1698
If you are using ESSET antivirus you might need to disable HTTP-scanner, Refer to composer documentation for more instruction how to disable HTTP-scanner
Upvotes: 0