0
votes

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

Not working composer

2
check what composer diag says - Pᴇʜ
@Peh Everything's OK :O - Muhammad Talha Akbar
Did you also add the secure-http flag instead of http-secure? - Niels Keurentjes
And did you scan through 14 similar issues? - Niels Keurentjes
@NielsKeurentjes I had scanned the other 14 issues. I guess doing secure-http did it. Plus I used -vvv flag to keep an eye on what's going on. - Muhammad Talha Akbar

2 Answers

1
votes

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 }
    ]
0
votes

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