簡稱:運行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 –