events.js:182
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE :::8000
at Object.exports._errnoException (util.js:1022:11)
at exports._exceptionWithHostPort (util.js:1045:20)
at Server.setupListenHandle [as _listen2] (net.js:1315:14)
at listenInCluster (net.js:1363:12)
at Server.listen (net.js:1463:7)
at Function.listen (G:\webstorm\movieManageWeb\node_modules\_express@4.16.2@express\lib\application.js:618:24)
at Object.<anonymous> (G:\webstorm\movieManageWeb\app.js:24:5)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Function.Module.runMain (module.js:605:10)
at startup (bootstrap_node.js:158:16)
at bootstrap_node.js:575:3
EADDRINUSE就是err address in use,翻译过来就是使用错误的端口
其实就是之前一次的命令运行之后,还占用着端口8000,解决方案有两个,
1、可以重新设置一下另外一个端口号。
2、杀死之前还占用8000端口的进程。