When starting the program using NPM Run Dev, the following error is reported:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: `vuepress dev docs`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev 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/cuihongzhen/.npm/_logs/2019-10-12T03_11_33_427Z-debug.log
Solutions:
rm -rf node_modules
rm -rf package-lock.json
npm cache clear --force
npm install