#1composer 阿里镜像源
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
#2取消全局配置
composer config -g --unset repos.packagist
#3使用第三方软件快速修改、切换 composer 镜像源
crm composer registry manager
安装 crm
composer global require slince/composer-registry-manager
composer repo:ls
#npm 淘宝镜像源
1、查看npm源地址npm config list
结果:metrics-registry = "http://registry.npm.taobao.org/"
2、修改registry地址,比如修改为淘宝镜像源。npm set registry https://registry.npm.taobao.org/
取消设置镜像源用,用rm命令删掉它npm config rm registry