Php 编写器未能解码响应:zlib_decode()
我正在尝试安装crudkit.com。这是我的composer.json:Php 编写器未能解码响应:zlib_decode(),php,Php,我正在尝试安装crudkit.com。这是我的composer.json: { "description" : "The CodeIgniter framework", "name" : "codeigniter/framework", "license": "MIT", "require": { "php": ">=5.2.4" }, "require-dev": { "mikey179/vfsStream"
{
"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.json
"repositories": [
{
"type": "composer",
"url": "https://packagist.org"
},
{ "packagist": false }
],
然后
sudo编写器更新
在composer.json文件中写入给定的行,希望它能像对我一样帮助别人。 然后运行composer更新 “存储库”:[ { “类型”:“作曲家”, “url”:” }, {“packagist”:false} ]