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就可以了