Composer卡在Loading composer repositories with package information的解决方法

First Post:

Last Update:

Word Count:
66

Read Time:
1 min

主要是中国防火墙太那啥了,执行下面的命令修改拉取信息的源就可以了

1
composer config -g repo.packagist composer https://packagist.phpcomposer.com
下面再给出两个源:
阿里云
https://mirrors.aliyun.com/composer/
腾讯云
https://mirrors.cloud.tencent.com/composer/