加快npm 和 yarn 的下载速度
npm config get registry
查看npm源,默认源是 https://registry.npmjs.org/
npm config set registry https://registry.npm.taobao.org
更换npm源
yarn config set registry https://registry.npm.taobao.org/
更换yarn源
npm config get registry
查看npm源,默认源是 https://registry.npmjs.org/
npm config set registry https://registry.npm.taobao.org
更换npm源
yarn config set registry https://registry.npm.taobao.org/
更换yarn源