composer 切换国内镜像

composer 执行安装或者更新时报错

[Composer\Downloader\TransportException]                                   
  Content-Length mismatch, received 318297 bytes out of the expected 677539

执行底下命令切换为国内镜像:
composer config -g repo.packagist composer https://packagist.phpcomposer.com

评论数量: 0

0
点赞
380
浏览
0
评论

贡献 69