WEBPACK构建脚本无需更改即可中断

时间:2019-01-04 02:23:24

标签: javascript webpack webpack-dev-server webpack-4

我已经建立了一个简单的WEBPACK构建脚本,该脚本直到昨晚都可以正常工作,现在没有任何更改,我收到以下错误消息,并且服务器还没准备好启动。

events.js:183
  throw er; // Unhandled 'error' event
  ^
Error: listen EADDRINUSE 127.0.0.1:1000
at Server.setupListenHandle [as _listen2] (net.js:1360:14)
at listenInCluster (net.js:1401:12)
at GetAddrInfoReqWrap.doListen [as callback] (net.js:1510:7)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:72:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! rms-css-remidiation@1.0.0 start: `webpack-dev-server --open --mode development`
npm ERR! Exit status
npm ERR!
npm ERR! Failed at the rms-css-remidiation@1.0.0 start script.

以下是我的package.json脚本:

"scripts": {
"start": "webpack-dev-server --open --mode development",
"build": "webpack -p"
},

1 个答案:

答案 0 :(得分:0)

错误提示地址127.0.0.1:1000已被使用