使用 composer global require "laravel/installer"安装时报以下错误:
[ComposerDownloaderTransportException]
Content-Length mismatch, received 114423 bytes out of the expected 1624856
为什么。我的环境是centos7 ,如何解决?
另外换成国内镜像源好像可以下载了,但为什么出现一个认证?
[www@localhost composer]$ composer global require "laravel/installer"
Changed current directory to /home/www/.config/composer
Using version ^2.0 for laravel/installer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Authentication required (packagist.phpcomposer.com):
Username:
Password:
切到Laravel China 的国内镜像吧!