gpt4 book ai didi

php - Composer 无法解码响应 : zlib_decode()

转载 作者:行者123 更新时间:2023-12-03 17:41:08 25 4
gpt4 key购买 nike

我正在尝试安装 crudkit.com。这是我的 composer.json:

{
"description" : "The CodeIgniter framework",
"name" : "codeigniter/framework",
"license": "MIT",
"require": {
"php": ">=5.2.4"
},
"require-dev": {
"mikey179/vfsStream": "1.1.*"
}

}

之后,我使用以下命令运行 Composer :
$ sudo php composer.phar install

但我得到了这样的错误:
Installing dependencies (including require-dev)
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

有谁知道如何解决它?

更新:
我尝试 Composer 诊断,我得到了这个:
Checking composer.json: FAIL
The version field is present, it is recommended to leave it out if the package is published on Packagist.
Checking platform settings: FAIL
The OpenSSL library (0.9.8zc) used by PHP does not support TLSv1.2 or TLSv1.1.
If possible you should upgrade OpenSSL to version 1.0.1 or above.

最佳答案

尝试更新 Composer 如下。

sudo composer clear-cache



将此行添加到 composer.json
"repositories": [
{
"type": "composer",
"url": "https://packagist.org"
},
{ "packagist": false }
],

进而

sudo composer update

关于php - Composer 无法解码响应 : zlib_decode(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35936466/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com