看淡事件,模糊双眼

项目运行报错

2018-12-03  本文已影响0人  书简_yu
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! mypro@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 mypro@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!     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改动可能时你换了工作地点,网络跟着发生了变动

上一篇下一篇

猜你喜欢

热点阅读