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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM