# 更换淘宝镜像源

使用默认的 NPM 和 YARN 源速度慢,更换成淘宝的镜像源,国内速度杠杠的

# 1. YARN

yarn config set registry https://registry.npm.taobao.org

# 2. NPM

# 安装cnpm镜像
npm install -g cnpm --registry=https://registry.npm.taobao.org
# 设置代理registry
npm config set registry https://registry.npm.taobao.org

# 3. Delete

yarn config delete proxy
npm config rm proxy
npm config rm https-proxy

参考

上次更新时间: 2023-12-15 03:14:55