npm get registry
npm config set registry 加带协议的地址 # 如: npm config set registry http://registry.npm.taobao.org/
修改镜像源地址后,配置文件在 ~/.npmrc 中:
~/.npmrc
registry=http://registry.npm.taobao.org/