美文网首页Vue.js的学习过程与心得
Vue building modules 1/1 module

Vue building modules 1/1 module

作者: 桃花江里小龙虾 | 来源:发表于2018-11-12 12:51 被阅读0次

写Vue时碰到 或者从Github下载的vue项目也有这样的错误

building modules 1/1 modules 0 activeevents.js:183 throw er; // Unhandled 'error' event 这样的错误,
,原来是没有设置host,或者host不对,当初在 webpack.dev.conf.js 里面找了半天,原来是在 \config\index.js里面更改

const path = require('path')
module.exports = {
 dev: {
   // Paths
   assetsSubDirectory: 'static',
   assetsPublicPath: '/',
   proxyTable: {},
   // Various Dev Server settings
   host: '192.168.0.106', // can be overwritten by process.env.HOST
   port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
  ...
 },

相关文章

网友评论

    本文标题:Vue building modules 1/1 module

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