Unhandled 'error' event

 


 1 events.js:72
 2         throw er; // Unhandled 'error' event
 3               ^
 4 Error: listen EADDRINUSE
 5     at errnoException (net.js:901:11)
 6     at Server._listen2 (net.js:1039:14)
 7     at listen (net.js:1061:10)
 8     at Server.listen (net.js:1127:5)
 9     at Object.<anonymous> (./server/index.js:73:24)
10     at Module._compile (module.js:456:26)
11     at Object.Module._extensions..js (module.js:474:10)
12     at Module.load (module.js:356:32)
13     at Function.Module._load (module.js:312:12)
14     at Function.Module.runMain (module.js:497:10)

方法:端口已经被占用了

1.需改nodejs中的侦听端口

2.找到已经占用nodejs端口的应用,关闭应用,重启nodejs。

 
posted @ 2015-04-23 17:12  淡然_  阅读(1409)  评论(0编辑  收藏  举报