composer安装thinkphp6.0出错问题解决

发布时间:2019-11-20 11:15:20 浏览量:100

安装thinkphp6.0的时候总是提示下面的

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


  [ErrorException]
  zlib_decode(): data error

执行完下面语句后再安装就正常了

composer config -l -g
//切换到国内源  阿里
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
composer config -g --unset repos.packagist