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

Problem

This is not the first time that I install Laravel from scratch but today I ran into an interesting issue. This is what it says:

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

This is what I typed to install Laravel

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

in my /var/www/ directory which has permissions to read, write and execute.

Solution

What you should definitely start with is running the composer self-update. In case that gives you an error such as:

[RuntimeException]
The phar signature did not match the file you downloaded, this means your public keys
are outdated or that the phar file is corrupt/has been modified

Then what you want to run is the following:

composer self-update --update-keys


from Linux Hint https://ift.tt/2CnJZkG

Post a Comment

0 Comments