Why use composer to install laravel Times transmission errors?

use composer global require "laravel/installer" to install the following error:

[ComposerDownloaderTransportException]
Content-Length mismatch, received 114423 bytes out of the expected 1624856

Why. My environment is centos7, how to solve it?

in addition, it seems that the domestic mirror source can be downloaded, but why is there an authentication?

[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: 
Sep.01,2021

1. The foreign one may fail to download due to a variety of reasons, including network delay, delay in calculating bytes, etc.
2. The domestic one that is normal does not need to be verified, unless it is solved by


caused by insufficient permissions, such as operation permissions, request permissions, whether your domestic image configuration is correct, and so on. The reason is that to use Chinese images, you must have their developer account. Or I can't download it. I am determined not to use it.
https://codeshelper.com/q/10.


cut to the domestic image of Laravel China!

Laravel China Community-High quality Laravel and PHP developer Community
|
Menu