根據composer文件提示將映象地址改為
composer config -g repo.packagist composer https://packagist.phpcomposer.com
發現還會報錯
Content-Length mismatch, received 3817089 bytes out of the expected 4257365
https://packagist.phpcomposer.com could not be fully loaded, package information was loaded from the local cache and may be out of date
[Composer\Downloader\TransportException]
The "https://packagist.phpcomposer.com/p/provid...
5001e18de.json" file could not be downloaded (HTTP/1.1 404 Not Found)
建議將地址改為
composer config -g repo.packagist composer https://packagist.laravel-china.org