npm安装比较慢,可以安装nrm npm install nrm -g 然后 nrm ls 列出镜像列表 镜像列表.png 前面带*的是当前的镜像路径 最后使用命令切换 nrm use 镜像名 如 nrm use taobao 使用阿里镜像