早睡早起,方能养生
Sleep early rise early, way to keep healthy

composer 切换国内源

super
2020-05-26 16:02
views 2964

composer切换源

 

全局切换

 

#禁用默认源
composer config -g secure-http false

#修改为阿里云源
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

#查看是否修改成功
composer config -g -l

#更新composer
composer self-update --2

 

image.png

 

修改成功



分享
0 条讨论
top