# 查看npm当前镜像源
npm config get registry
# 设置npm镜像源为淘宝镜像
npm config set registry https://registry.npm.taobao.org/
# 查看yarn当前镜像源
yarn config get registry
# 设置yarn镜像源为淘宝镜像
yarn config set registry https://registry.npm.taobao.org/
yarn config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/