npm 查看设置
可以查看cache和prefix地址,及当前设置的registry
npm config list
npm设置源
// 旧淘宝源
// npm config set registry http://registry.npm.taobao.org/
// npm设置新淘宝源
npm config set registry https://registry.npmmirror.com
// npm设置回本源
npm config set registry https://registry.npmjs.org
yarn设置源
// yarn设置淘宝源
yarn config set registry https://registry.npmmirror.com
// yarn 设置回本源
yarn config set registry https://registry.yarnpkg.com/