npm cache clean --force # 清理缓存 npm install # 或者 cnpm install (install后面不加任何内容) npm update # 或者 cnpm update (建议选择cnpm(国内镜像源)) 再次运行项目 npm run serve