码迷,mamicode.com
首页 > 其他好文 > 详细

Composer 安装 zlib_decode(): data error 错误

时间:2019-09-14 00:55:44      阅读:208      评论:0      收藏:0      [点我收藏+]

标签:sel   cep   ESS   res   getc   iter   执行   pen   als   

1、composer 安装一个组件(composer require topthink/think-worker) 报错如下

Failed to decode response: zlib_decode(): data error
Retrying with degraded mode, check https://getcomposer.org/doc/articles/troubles hooting.md#degraded-mode for more info


[ErrorException]
zlib_decode(): data error


require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [-- update-with-all-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--pref er-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authorita tive] [--apcu-autoloader] [--] [<packages>]...

完整截图:

技术图片

 

 解决方法:

1、首先更新composer

     composer self-update

2、换http源,更改配置不要使用https加密连接

 composer config -g repo.packagist composer http://packagist.phpcomposer.com
 composer config -g secure-http false
重新执行安装命令即可成功

技术图片

 

 




Composer 安装 zlib_decode(): data error 错误

标签:sel   cep   ESS   res   getc   iter   执行   pen   als   

原文地址:https://www.cnblogs.com/pxjbk/p/11517966.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!