Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Composer Error while installing Laravel "Failed to decode response: zlib_decode(): data error"

I've already installed laravel a lot of times, but today when I had to install it for my project I experienced the following strange error:

Failed to decode response: zlib_decode(): data error Retrying with degraded mode 

I ran the following command to install laravel:

composer create-project laravel/laravel myproject --prefer-dist 

in my /var/www/ directory which is totally read, write and executable.

like image 262
MKJ Avatar asked Nov 03 '15 14:11

MKJ


2 Answers

Try the following command:

composer clear-cache 
like image 192
Medmo Avatar answered Sep 20 '22 13:09

Medmo


Add this lines to " composer.json " before the last line that conten this symbol " } "

, "repositories": [ { "type": "composer", "url": "https://packagist.org" }, { "packagist": false } ] 

Now cd to your project folder and type :

Composer install 

Credits to: http://www.webdeveloper.com/forum/showthread.php?285403-Need-Help-Installing-Laravel

like image 21
dwainm Avatar answered Sep 22 '22 13:09

dwainm