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安装。想法?
答案 0 :(得分:4)
根据日志,您正在使用群集。您可能正在尝试从同一端口上的每个子进程进行侦听,这会在第二个子进程启动后抛出错误。
答案 1 :(得分:0)
当使用单个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
答案 2 :(得分:0)
我可以在你的日志中看到:
您的主服务器在127.0.0.1:5858上启动。
然后SocketCluster尝试启动127.0.0.1:5858
所以如果你的一台服务器已经是5858端口,那么其他服务器如何使用5858?
为了解决这个问题,请改变端口。