throw er; // Unhandled ‘error’ event

[email protected] dev C:\Users\wongseedling\Desktop\digiops\digiops

webpack-dev-server --content-base ./ --open --inline --hot --compress --config build/webpack.dev.config.js --host 192.168.0.114

Happy[happybabel]: Version: 4.0.0. Threads: 8 (shared pool)
events.js:167
throw er; // Unhandled ‘error’ event
^

Error: listen EADDRNOTAVAIL 192.168.0.114:8080
at Server.setupListenHandle [as _listen2] (net.js:1269:19)
at listenInCluster (net.js:1334:12)
at doListen (net.js:1460:7)
at process._tickCallback (internal/process/next_tick.js:63:19)
at Function.Module.runMain (internal/modules/cjs/loader.js:744:11)
at startup (internal/bootstrap/node.js:285:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)
Emitted ‘error’ event at:
at emitErrorNT (net.js:1313:8)
at process._tickCallback (internal/process/next_tick.js:63:19)
[… lines matching original stack trace …]
at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: webpack-dev-server --content-base ./ --open --inline --hot --compress --config build/webpack.dev.config.js --host 192.168.0.114
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\wongseedling\AppData\Roaming\npm-cache_logs\2019-03-06T13_21_06_475Z-debug.log
PS C:\Users\wongseedling\Desktop\digiops\digiops>

问题: ip地址不一致.

解决ipconfig 查询本地ip替换即可

你可能感兴趣的:(throw er; // Unhandled ‘error’ event)