throw er; // Unhandled 'error' event

weixin_30788239發表於2020-04-05

events.js:72
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE
at errnoException (net.js:904:11)
at Server._listen2 (net.js:1042:14)
at listen (net.js:1064:10)
at Server.listen (net.js:1138:5)
at Object.<anonymous> (F:\socket\index.js:9:6)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)

出現這種錯誤一般就是已經執行的另一個伺服器使用了相同的埠,換一個埠就可以了。

轉載於:https://www.cnblogs.com/laneyfu/p/6129657.html

相關文章