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/
viencoding.com版权所有,允许转载,但转载请注明出处和原文链接: https://viencoding.com/article/181