nodejs和webstrom使用出现的小错误

我按着之前的以一个小项目重新打一遍,然后运行时出现这种错误
events.js:183
      throw er; // Unhandled 'error' event
      ^
Error: listen EADDRINUSE :::3000   主要是因为端口被占用了,之前已经已经使用过一次3000端口。所以要改一下就可以了
    at Object._errnoException (util.js:992:11)
    at _exceptionWithHostPort (util.js:1014:20)
    at Server.setupListenHandle [as _listen2] (net.js:1355:14)
    at listenInCluster (net.js:1396:12)
    at Server.listen (net.js:1480:7)
    at Object.<anonymous> (F:\webstudy\Practice\text.js:31:5)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)

猜你喜欢

转载自blog.csdn.net/DiegoBrother/article/details/80423892