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