简称:运行composer self-update --update-keys
,并按照指示。
循序渐进:
我试图安装我的项目依赖的时候了同样的错误:
Failed to decode response: zlib_decode(): data error
Retrying with degraded mode, check https://getcomposer.org/doc/articles/troubleshooting.md#degraded-mode for more info
Your configuration does not allow connection to http://packagist.org. See https://getcomposer.org/doc/06-config.md#secure-http for details.
http://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
只是可以肯定,我尝试更新作曲家与composer self-update
,这给了我相同的错误,但另一个提示:
[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
的问题之一是通过运行
composer self-update --update-keys
和Composer Public Keys/Signatures页面进入键解决。之后我可以下载我的依赖关系。
可能是你可以找到https://github.com/composer/composer/issues/4121 –