本文目的是為了方便華為雲 PHP 加速映象負責人除錯。
錯誤重現
- 使用映象:
$ composer config -g repo.packagist composer https://mirrors.huaweicloud.com/repository/php/
- 清空快取
Composer 會把下載的包進行快取,清理本地快取後將會從加速映象下載:
$ composer clear-cache
- 安裝和下載專案
$ composer create-project laravel/laravel blog -vvv
報錯頁面:
使用 LC Composer 映象做對比的話:
$ composer config -g repo.packagist composer https://packagist.laravel-china.org
$ composer clear-cache
$ composer create-project laravel/laravel blog -vvv
成功介面如下: