建议换成国内淘宝的镜像,这样install速度能提升一大截
1、首先,查看当前使用的镜像
npm config ls
2、如果是以下信息,则是国外的镜像
3、替换Taobao镜像
npm config set registry https://registry.npm.taobao.org
4、替换后再次查看当前使用的镜像
npm config ls
出现下面这个,说明替换成功
metrics-registry = "https://registry.npm.taobao.org/"