Skip to content

Instantly share code, notes, and snippets.

@etahamad
Created November 16, 2022 16:11
Show Gist options
  • Save etahamad/29ed4af90db4b2e53f1f9ac7aa17d55a to your computer and use it in GitHub Desktop.
Save etahamad/29ed4af90db4b2e53f1f9ac7aa17d55a to your computer and use it in GitHub Desktop.
omar@ubuntu-s-4vcpu-8gb-fra1-01:~/call-booking-application/user-api$ npm start
> user-api@1.0.0 start
> node server.js
Server started on PORT 1004
events.js:291
throw er; // Unhandled 'error' event
^
Error: listen EACCES: permission denied 0.0.0.0:1004
at Server.setupListenHandle [as _listen2] (net.js:1293:21)
at listenInCluster (net.js:1358:12)
at Server.listen (net.js:1444:7)
at Function.listen (/home/omar/call-booking-application/user-api/node_modules/express/lib/application.js:618:24)
at Object.<anonymous> (/home/omar/call-booking-application/user-api/server.js:36:5)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
Emitted 'error' event on Server instance at:
at emitErrorNT (net.js:1337:8)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
code: 'EACCES',
errno: 'EACCES',
syscall: 'listen',
address: '0.0.0.0',
port: 1004
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment