CleverProgrammers / nodejs-zoom-clone

848 stars 483 forks source link

APP CRASH PLEASE HELP!! #14

Open Starbors opened 4 years ago

Starbors commented 4 years ago
PS C:\Users\Ryan samaeian\Desktop\Lettters\nodejs-zoom-clone-master\nodejs-zoom-clone-master> nodemon server.js
[nodemon] 2.0.4
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `node server.js`
events.js:292
      throw er; // Unhandled 'error' event
      ^

Error: listen EADDRINUSE: address already in use :::3030
    at Server.setupListenHandle [as _listen2] (net.js:1313:16)
    at listenInCluster (net.js:1361:12)
    at Server.listen (net.js:1447:7)
    at Object.<anonymous> (C:\Users\Ryan samaeian\Desktop\Lettters\nodejs-zoom-clone-master\nodejs-zoom-clone-master\server.js:42:8)
    at Module._compile (internal/modules/cjs/loader.js:1200:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10)
    at Module.load (internal/modules/cjs/loader.js:1049:32)
    at Function.Module._load (internal/modules/cjs/loader.js:937:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)    
    at internal/main/run_main_module.js:17:47
Emitted 'error' event at:
    at WebSocketServer.<anonymous> (C:\Users\Ryan samaeian\Desktop\Lettters\nodejs-zoom-clone-master\nodejs-zoom-clone-master\node_modules\peer\dist\src\instance.js:53:13)
    at WebSocketServer.emit (events.js:315:20)
    at WebSocketServer._onSocketError (C:\Users\Ryan samaeian\Desktop\Lettters\nodejs-zoom-clone-master\nodejs-zoom-clone-master\node_modules\peer\dist\src\services\webSocketServer\index.js:49:14)
    at WebSocketServer.<anonymous> (C:\Users\Ryan samaeian\Desktop\Lettters\nodejs-zoom-clone-master\nodejs-zoom-clone-master\node_modules\peer\dist\src\services\webSocketServer\index.js:22:55)
    at WebSocketServer.emit (events.js:315:20)
    at Server.emit (events.js:315:20)
    at emitErrorNT (net.js:1340:8)
    at processTicksAndRejections (internal/process/task_queues.js:84:21) {
  code: 'EADDRINUSE',
  errno: -4091,
  syscall: 'listen',
  address: '::',
  port: 3030
}
[nodemon] app crashed - waiting for file changes before starting...

So l get this can someone please help me!!!

rachitakeshri commented 4 years ago

Have you tried using another port ?

Starbors commented 4 years ago
https://github.com/CleverProgrammers/nodejs-zoom-clone/blob/master/server.js#L42

could you explain more?

Starbors commented 4 years ago

Ye it willl crash with all of them lol!

idsus commented 4 years ago

Still the issue?

Starbors commented 4 years ago

ye still appcrash

Starbors commented 4 years ago

Yes

idsus commented 4 years ago

Thanks for the command!

Starbors commented 4 years ago

@ret394 You didnt even add a port!

nodemon needs it

anujmittal2308 commented 2 years ago

https://stackoverflow.com/questions/72003682/cant-fix-expresspeerserver-is-not-a-function-in-server-js