2016-03-11 124 views
3

我試圖安裝crudkit.com。這是我的composer.json:Composer無法解碼響應:zlib_decode()

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

} 

在那之後,我使用運行作曲:

$ 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 

任何人都知道如何解決這個問題?感謝高級的計算器!

更新: 我有嘗試作曲診斷,我得到這樣的:

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. 

回答

0

嘗試更新作曲家如下。

須藤作曲家明確緩存

加入這一行composer.json

"repositories": [ 
    { 
     "type": "composer", 
     "url": "https://packagist.org" 
    }, 
    { "packagist": false } 
], 

然後

須藤作曲家更新