美文网首页
composer 报 Failed to decode resp

composer 报 Failed to decode resp

作者: DukeAnn | 来源:发表于2019-11-05 15:20 被阅读0次

    造成这个问题的原因有好多,可以依次试试下列方法

    方法一

    从上往下依次执行

    composer clear-cache
    composer diagnose
    composer self-update
    

    方法二

    修改 php.ini 文件(./etc/php.ini)

    ; Transparent output compression using the zlib library
    ; Valid values for this option are 'off', 'on', or a specific buffer size
    ; to be used for compression (default is 4KB)
    ; Note: Resulting chunk size may vary due to nature of compression. PHP
    ;   outputs chunks that are few hundreds bytes each as a result of
    ;   compression. If you prefer a larger chunk size for better
    ;   performance, enable output_buffering in addition.
    ; Note: You need to use zlib.output_handler instead of the standard
    ;   output_handler, or otherwise the output will be corrupted.
    ; http://php.net/zlib.output-compression
    zlib.output_compression = On
    
    ; http://php.net/zlib.output-compression-level
    zlib.output_compression_level = 5
    

    方法三

    关闭 IPV6

    相关文章

      网友评论

          本文标题:composer 报 Failed to decode resp

          本文链接:https://www.haomeiwen.com/subject/wezsbctx.html