当我尝试使用“laravel new project”创建一个新的laravel项目时
我收到此错误:
Content-Length mismatch
http://packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
当我执行“composer update”或“composer install doctrine/dbal”时,我也收到了错误。
我的 Composer 太慢了。
最佳答案
可能是因为您没有更改 Composer 的网址。我在 shell 程序中运行它,并且可以正常工作。而且我猜URL在不同的城市是不同的。希望对您有帮助。
composer config -g repo.packagist composer https://packagist.phpcomposer.com
关于php - Composer : “Content-length mismatch” & “http://packagist.org could not be fully loaded…” ,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/40309620/