- 查看当前镜像
npm get registry --> https://registry.npmjs.org/
- 设置淘宝镜像
npm config set registry http://registry.npm.taobao.org/
- 换成原本镜像
npm config set registry https://registry.npmjs.org/
npm get registry --> https://registry.npmjs.org/
npm config set registry http://registry.npm.taobao.org/
npm config set registry https://registry.npmjs.org/