1.淘宝镜像链接获取:NPM镜像-NPM下载地址-NPM安装教程-阿里巴巴开源镜像站
https://registry.npmmirror.com
2.执行配置指令
npm config set registry https://registry.npmmirror.com
3.查看配置
npm config get registry
4.如果需要解除镜像并恢复到官方源,请执行以下命令
npm config set registry https://registry.npmjs.org
具体执行如下