执行命令 composer require particle/validator 报错 Failed to decode response: zlib_decode(): data error 

composer 报错:Failed to decode response: zlib_decode(): data error 解决办法_composer

网上推荐用 composer self-update,试一下,如下图,我的是最新版了,所以没有用

composer 报错:Failed to decode response: zlib_decode(): data error 解决办法_es_02

 

最后踏破铁鞋终于找到了一段解决问题的命令,composer diagnose  结果成功了

composer 报错:Failed to decode response: zlib_decode(): data error 解决办法_composer_03

最好 执行命令 composer require particle/validator 成功了

composer 报错:Failed to decode response: zlib_decode(): data error 解决办法_composer_04