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安全衛士里把我的項目加白,不讓掃描了。然后重新下載依賴就好了。