composer self-update 更新失败问题

composer self-update
Updating to version 2.0.7 (stable channel).
   Downloading (100%)
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
Downloading (100%)

  [ErrorException]
  zlib_decode(): data error


更新为阿里云镜像

composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

切换到项目目录下 (包含composer.json文件)

再执行 composer self-update 命令

你可能感兴趣的:(composer,composer)