将composer环境变量从php5.6更换为php7.2后,使用composer create-project 安装laravel指定版本时提示内容长度有误
Content-Length mismatch, received xxxx bytes out of the expected xxxx
更换composer镜像即可
阿里云镜像
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/