设置npm 和 yarn 的镜像地址
如果全局设置失败,就把--global 去掉
npm config set registry https://registry.npm.taobao.org --global
npm config set disturl https://npm.taobao.org/dist --global
npm info underscore (如果上面配置正确这个命令会有字符串response)
yarn config set registry https://registry.npm.taobao.org --global
yarn config set disturl https://npm.taobao.org/dist --global
yarn config get registry (如果上面配置正确这个命令会输出淘宝镜像地址)