Slow updating of composer dependencies, despite --prefer-dist flag

后端 未结 10 1739
走了就别回头了
走了就别回头了 2020-12-22 18:42

Why does it take up to two minutes for my composer dependencies to update, even when there have been no changes?

A popular suggestion is to append the --prefer-

10条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-22 19:13

    I had a problem due to having IPv6 enabled. Running the following fixed this problem:

    sudo sh -c "echo 'precedence ::ffff:0:0/96 100' >> /etc/gai.conf"

    You can find more information here: https://getcomposer.org/doc/articles/troubleshooting.md#operation-timed-out-ipv6-issues-

提交回复
热议问题