composer镜像源更换为阿里云

官网: https://developer.aliyun.com/composer

全局替换

composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
composer clear-cache # 此步选择性操作,清除所有 package 缓存。

当前项目替换

cd 项目目录
composer config repo.packagist composer https://mirrors.aliyun.com/composer/
点赞

发表评论

电子邮件地址不会被公开。必填项已用 * 标注