npm start报错
Posted weiweiyeyu
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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就可以了
以上是关于npm start报错的主要内容,如果未能解决你的问题,请参考以下文章
npm install 和npm start各种报错无法解决的问题