問題敘述
6/22 發生這個錯誤,當時在裝 nexmo 以為是預設空間不夠,後來換中國的映像解決問題,確定是 mirror 地址掛掉。之後台灣社群也有人建了台灣的映像檔。
"composer update" not working #9003
Content-Length mismatch, received 547139 bytes out of the expected 2345297
http://repo.packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
更換鏡像檔的方法
檢查自己的鏡像檔
composer config -l
- 台灣 mirror
composer config -g repos.packagist composer https://packagist.tw
- 阿里雲 mirror
composer config repo.packagist composer https://mirrors.aliyun.com/composer/
- 日本 mirror
composer config repo.packagist composer https://packagist.jp
後記
兩週後同樣的方法也成功幫我解決了類似問題
反正 composer install 有問題先換 mirror