写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
...
},