造成这个问题的原因有好多,可以依次试试下列方法
方法一
从上往下依次执行
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
网友评论