webpack-dev-server --port 9090 指定端口号,命令仍不能执行,确认不是端口冲突的问题

来源:5-4 webpack热加载配置(下)

慕粉17098071134

2017-09-23

webpack版本:

"webpack": "^3.6.0",

"webpack-dev-server": "^2.8.2"


错误日志:

Project is running at http://localhost:9090/

webpack output is served from /

events.js:182

      throw er; // Unhandled 'error' event

      ^


Error: listen EADDRINUSE 127.0.0.1:9090

    at Object.exports._errnoException (util.js:1022:11)

    at exports._exceptionWithHostPort (util.js:1045:20)

    at Server.setupListenHandle [as _listen2] (net.js:1315:14)

    at listenInCluster (net.js:1363:12)

    at GetAddrInfoReqWrap.doListen [as callback] (net.js:1489:7)

    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:96:10)


写回答

2回答

Parry

2017-09-23

https://stackoverflow.com/questions/8553957/how-to-release-localhost-from-error-listen-eaddrinuse

0
0

慕粉17098071134

提问者

2017-09-23

webpack --watch  是没有问题的

0
3
慕粉17098071134
回复
慕盖茨4875053
做了版本回退
2017-12-04
共3条回复

结合基础与实战学习React.js 独立开发新闻头条平台

轻松入门 React 开发,React Router 4 与 Webpack 2 完美升级项目

2768 学习 · 2126 问题

查看课程