【问题标题】:Error - Unknown listen EADDRINUSE :::5432 in Windows Powershell错误 - Windows Powershell 中的未知监听 EADDRINUSE :::5432
【发布时间】:2019-03-24 18:26:41
【问题描述】:

在运行 gulp serve --nobrowser 时,我收到以下错误:

{ Error: listen EADDRINUSE :::5432
at Object._errnoException (util.js:992:11)
at _exceptionWithHostPort (util.js:1014:20)
at Server.setupListenHandle [as _listen2] (net.js:1355:14)
at listenInCluster (net.js:1396:12)
at Server.listen (net.js:1480:7)
at SpfxServeTask.executeTask (C:\Users\lipalath\_\EUS-Col-ColPub- 
PublishApps\PublishApps\node_modules\@microsoft\gulp-core-build- 
serve\lib\ServeTask.js:70:65)   
code: 'EADDRINUSE',
errno: 'EADDRINUSE',
syscall: 'listen',
address: '::',
port: 5432 }
[13:25:31] Error - Unknown
 listen EADDRINUSE :::5432
{ Error: listen EADDRINUSE 127.0.0.1:4321
at Object._errnoException (util.js:992:11)
at _exceptionWithHostPort (util.js:1014:20)
typeof-compare is deprecated. Starting from TypeScript 2.2 the compiler 
includes this check which makes this rule redundant.

谁能告诉我如何解决这个问题?

【问题讨论】:

    标签: reactjs typescript gulp node-modules


    【解决方案1】:

    我在运行命令gulp serve 时遇到了同样的错误。 gulp 已经在另一个终端中提供服务,并且没有检查,我在另一个终端中运行 gulp serve

    所以我不得不关闭一个终端并再次运行命令gulp serve。您也可以通过按 CTRL + c 来停止一个终端。

    这也适用于gulp watch

    【讨论】:

      猜你喜欢
      • 2016-07-12
      • 2014-01-17
      • 2014-12-11
      • 1970-01-01
      • 1970-01-01
      • 2018-12-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多