1. 清除缓存 npm cache clean -f 2. 切换为淘宝镜像 npm config set registry https://registry.npm.taobao.org/ 3. 再执行npm i