我正在使用 Jest 來執(zhí)行單元測試。"jest": "^26.4.2","jest-preset-angular": "^8.3.1"所有測試都已通過并運(yùn)行但出現(xiàn)如下錯誤Test Suites: 20 passed, 20 totalTests: 26 passed, 26 totalSnapshots: 2 obsolete, 5 passed, 5 totalTime: 92.961 sRan all test suites.npm ERR! code ELIFECYCLEnpm ERR! errno 1npm ERR! idp@0.0.0 test:app: `jest --config ./jest.app.config.js --no-cache`npm ERR! Exit status 1npm ERR! npm ERR! Failed at the idp@0.0.0 test:app script.npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in:npm ERR! /Users/macbook/.npm/_logs/2020-09-15T09_19_42_790Z-debug.log我從谷歌搜索中嘗試了以下命令,但是它不起作用npm cache clean --forcerm -rf node_modulesnpm install
如何解決錯誤“ERR!code ELIFECYCLE”?
德瑪西亞99
2023-03-03 14:53:50
