错误:EADDRINUSE在Mac上 – 即使没有使用端口?

Alexs-MacBook-Pro:build alexnordhausen$ gulp server:start [21:11:22] Using gulpfile ~/Documents/Kanvasroom_Support/kanvasroom/build/gulpfile.js [21:11:22] Starting 'env:dev'... Application loaded using the "development" environment configuration [21:11:22] Finished 'env:dev' after 6.25 ms [21:11:22] Starting 'server:start'... [21:11:22] Finished 'server:start' after 1.95 ms [21:11:22] [nodemon] 1.11.0 [21:11:22] [nodemon] to restart at any time, enter `rs` [21:11:22] [nodemon] watching: *.* [21:11:22] [nodemon] starting `node --debug=5858 --trace-warnings server.js` Server started, be sure the user content server is also running with gulp user-content Live-build the client with gulp web:dist Debugger listening on 127.0.0.1:5858 [Busy] Launching SocketCluster Error: listen EADDRINUSE 127.0.0.1:5858 at Object.exports._errnoException (util.js:1022:11) at exports._exceptionWithHostPort (util.js:1045:20) at Agent.Server._listen2 (net.js:1262:14) at listen (net.js:1298:10) at doListening (net.js:1397:7) at _combinedTickCallback (internal/process/next_tick.js:77:11) at process._tickCallback (internal/process/next_tick.js:98:9) 

有没有任何鬼过程运行…这是工作得很好,直到我做了一个新的npm安装整个项目。 思考?

根据日志,您正在使用群集。 您可能试图从同一个端口上的每个subprocess进行侦听,这会在第二个subprocess启动后抛出错误。

当多于两个应用程序使用单个portno时,会出现此错误。

 Use this command 1) `netstat -tulpn` (Commans for show all the process on server) 2) then kill the process with the process number. like kill 2043 

我可以在你的日志中看到:

您的主服务器在127.0.0.1:5858上启动。

然后SocketCluster尝试从127.0.0.1:5858开始

所以如果你一台服务器已经是5858端口,那么其他服务器怎么使用5858呢?

所以换一个问题来解决这个问题。