composer 安装一直卡住不动(Loading composer repositories with package information)
安装提示
# Loading composer repositories with package information
这主要是因为“中国长城”的作用
解决办法修改下载源地址
原地址:
composer config -g repo.packagist composer https://packagist.phpcomposer.com
不从外网直接取,改中国的一家镜像站。
#阿里云的composer镜像源
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
#腾讯云的composer镜像源
composer config -g repo.packagist composer https://mirrors.cloud.tencent.com/composer/
#解除镜像并恢复到 packagist 官方源
composer config -g --unset repos.packagist