项目运行报错

作者: 书简_yu | 来源:发表于2018-12-03 23:51 被阅读0次
    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改动可能时你换了工作地点,网络跟着发生了变动

    相关文章

      网友评论

        本文标题:项目运行报错

        本文链接:https://www.haomeiwen.com/subject/vudpcqtx.html