Composer安装/更新出现长时间延迟


Long Delay in Composer installation/update

在安装或更新composer包时,有时会出现非常的长滞后,看起来像

$ composer.phar update
Loading composer repositories with package information

也就是说,Loading composer repositories with package information消息在继续之前显示为挂起5或10分钟。

在微观层面上,composer在"用包信息加载composer存储库"时究竟在做什么?这是网络滞后吗?处理滞后?二者都也不

在进行了更多的挖掘之后,我能够使用--profile-vvv标志更好地对其进行分析

composer.phar --profile -vvv update 

这些标志使我能够准确地指出导致我出现问题的网络延迟。