npm start報錯


1.報錯信息

20 error code ELIFECYCLE
21 error errno 1
22 error  start: `webpack-dev-server --config ./scripts/webpack.dev.config.js`
22 error Exit status 1
23 error Failed at the start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

原因 :端口被占用

解決方式:

查詢占用端口的進程:

netstat -ano|findstr  [端口號]

 

關閉進程:

taskkill /f /t /im [進程號]

 

 重新執行

npm start

2.報錯信息

 You gave us a visitor for the node type "DeclareOpaqueType"   but it's not a valid type

解決方式:

npm install --save-dev babel-types

 


免責聲明!

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



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