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



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

时间: 2024-11-05 19:42:04

Composer 安装 zlib_decode(): data error 错误的相关文章

composer爆错:zlib_decode():data error

昨晚用nginx运行Yii的一个开源小项目,结果composer安装依赖一直报错,如下 Failed to decode response: zlib_decode(): data error 如果遇到要输入Token (hidden):的情况,请看这篇文:http://www.cnblogs.com/cxscode/p/7003831.html 不是请继续往下,,, 网上清一色推荐用  self-update,虽然对我的情况然并卵,但可以试一下,如下图,我的是最新版了,所以没有用. 继续往下,

zlib_decode(): data error

使用composer 安装laravel 项目,执行composer create-project laravel/lumen --prefer-dist,命令报 [ErrorException]    zlib_decode(): data error 错. 解决办法:执行 composer self-update 即可 或者是网络问题,换成移动数据网络试一试.或者执行下面的指令: composer config -g repo.packagist composer https://packa

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

composer update的时候出现: 执行: composer config -g repo.packagist composer https://packagist.phpcomposer.com 就解决了:

ErrorKiller:Failed to decode response: zlib_decode(): data error

先更新composer自己,composer self-update 然后再更新依赖关系 composer update

使用composer安装laravel

更具官方文档说:Laravel utilizes Composer to manage its dependencies. So, before using Laravel, you will need to make sure you have Composer installed on your machine. 参考文档:https://laravel.com/docs/5.0 按照文档说明执行,安装速度真是超级慢.我一度认为是安装出现了错误.下面是我安装的截图. 一共出现了三次信息提示.

关于本地安装discuz,上传图片sever(IO) error错误

在安装discuz成功后,上传图片时提示server (IO) error错误!!! 1. 查看错误日志error.log,发现如下错误: 09:18:01 [error] 1966#0: *50 open() " /application/nginx-1.6.3//html/bbs/static/js/common_postimg.js"failed (2: No such file or directory) , client: 10.0.0.1, server:bbs.etian

安装Stomp扩展时错误提示error: &#39;zend_class_entry&#39; has no member named &#39;default_properties&#39;

在安装stomp扩展时, 有这样的提示 error: 'zend_class_entry' has no member named 'default_properties' 交待下安装上下文, stomp 版本是 1.0.3 而最新的是 1.0.8  php 版本是5.4.x , 猜想可能是由于版本差异造成的, 因为1.0.3的 stomp 出现的年份是2010年... 于是网上搜索了一下, 文章点这 说在出错的文件中把 default_properties 改成 default_propert

YUM安装提示PYCURL ERROR 6 - "Couldn&#39;t错误的解决办法

当编译PHP时出现如下错误时,找不到头绪 这时,打开DNS   vim /etc/resolv.conf   添加一行nameserver 192.168.1.1 完成上一步,则解决该问题 YUM安装提示PYCURL ERROR 6 - "Couldn't错误的解决办法

window10 安装出现the error code is 2503错误的解决方法

window10 安装出现the error code is 2503错误的解决方法: 设置 C:\WINDOWS\TEMP的权限