项目运行报错

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: `webpack-dev-server --inline --progress --config build/webpack.dev.conf.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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!     C:\Users\huglove\AppData\Roaming\npm-cache\_logs\2018-12-03T15_43_53_979Z-debug.log

原因:config/index.js中

host: '192.168.2.21', // can be overwritten by process.env.HOST

当你IP发生改动,而你没有修改此处时,就会运行报错。

IP改动可能时你换了工作地点,网络跟着发生了变动

你可能感兴趣的:(项目运行报错)