问题描述:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! test@1.0.0 unit: `jest --config test/unit/jest.conf.js --coverage`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the test@1.0.0 unit 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/v_ligaoyan/.npm/_logs/2020-04-29T06_21_19_561Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! test@1.0.0 test: `npm run unit`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the test@1.0.0 test 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/v_ligaoyan/.npm/_logs/2020-04-29T06_21_19_605Z-debug.log
这种问题感觉有点泛泛,网友们的方法:
1…/node_modules/jest/bin/jest.js --clearCach 或者 npm jest -