npm start报错

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! gshop-client_final@1.0.0 dev: `webpack-dev-server --inline --progress --config build/webpack.dev.conf.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the gshop-client_final@1.0.0 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/yeyu/.npm/_logs/2020-06-07T05_15_54_124Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! gshop-client_final@1.0.0 start: `npm run dev`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the gshop-client_final@1.0.0 start 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/yeyu/.npm/_logs/2020-06-07T05_15_54_157Z-debug.log

 

可能是因为另一个项目把一些包全局更新了,到导致了这个项目出现资源包版本不对的这个问题

解决方法:

把这个项目的node包(node_modules)删除再 npm install

随后npm start就可以了

 

posted @ 2020-06-07 13:34  我是木木呀  阅读(1389)  评论(1编辑  收藏  举报