1. 程式人生 > >npm start報錯

npm start報錯

image webp alt .config nal 端口號 pts 報錯 elif

報錯信息

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

npm start報錯