ant-design-pro@2.1.1 build: umi build

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ant-design-pro@2.1.1 build: umi build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ant-design-pro@2.1.1 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

出现原因:项目里文件丢失了。

解决方案: 删除 node_modules,重新下载依赖

本人项目出现这个 问题的原因:360安全卫士自动删除了我项目的文件,它扫描以为存在不安全因素。在360安全卫士里把我的项目加白,不让扫描了。然后重新下载依赖就好了。

原文地址:https://www.cnblogs.com/class1/p/13730124.html