不乱于心,不困于情。
不畏将来,不念过往。如此,安好。

Composer 安装 zlib_decode(): data error 错误

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
重新执行安装命令即可成功

转自:cnblog

赞(0) 打赏
未经允许不得转载:seo优化_前端开发_渗透技术 » Composer 安装 zlib_decode(): data error 错误

相关推荐

  • 暂无文章

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏