临时设置
bash
npm install <package> --registry=https://registry.npmmirror.com/
永久设置
bash
npm config set registry https://registry.npmmirror.com/
获取设置值
bash
npm config get registry
退回官方
bash
npm config set registry https://registry.npmjs.org/