npm ERR! code ELIFECYCLE的解决

在使用npm run dev启动程序时,报出如下错误:

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

问题解决方案:

rm -rf node_modules
rm -rf package-lock.json
npm cache clear --force
npm install
发布了327 篇原创文章 · 获赞 133 · 访问量 63万+

猜你喜欢

转载自blog.csdn.net/qq_30507287/article/details/102516885
今日推荐