查看npm配置
npm config list --json
查看当前仓库地址
npm config get registry
设置源地址(示例)
npm config set registry=http://registry.npmjs.org/
常见源
官方源: http://registry.npmjs.org/
淘宝源: https://registry.npmmirror.com/
阿里云NPM镜像:https://npm.aliyun.com/
CNPM镜像:https://r.cnpmjs.org/