Xanxus
Xanxus

Reputation: 41

How to fix "listen EACCES: permission denied 0.0.0.0:8000"

I tried to explore Quasar Framework. I download node.js and quasar.cli already. i managed to create project, but when i "quasar dev" in my quasar file, it pop up the errors.

C:\Users\User>cd njir

C:\Users\User\njir>quasar dev

Dev mode.......... spa Pkg quasar........ v1.2.2 Pkg @quasar/app... v1.2.1 Debugging......... enabled

app:quasar-conf Reading quasar.conf.js +0ms app:dev Checking listening address availability (0.0.0.0:8080)... +25ms

app:dev ⚠️ Unknown network error occurred +0ms { [ Error: listen EACCES: permission denied 0.0.0.0:8080

] code: 'EACCES', errno: 'EACCES', syscall: 'listen', address: '0.0.0.0', port: 8080 }

C:\Users\User\njir>

Upvotes: 4

Views: 14269

Answers (5)

Ashish Sagane
Ashish Sagane

Reputation: 1

In my node.js project , i was using .env file to store the port number. So if you are following the same then: solution: DO NOT ADD ; in .env file

Upvotes: 0

Jamal Kaksouri
Jamal Kaksouri

Reputation: 1894

For Windows users, please follow these steps:

  1. Make sure to run PowerShell as an administrator.

  2. Execute the following command to stop the "winnat" service:

net stop winnat

  1. Execute the following command to restart the "winnat" service:

net start winnat

Upvotes: 25

Дмитрий
Дмитрий

Reputation: 1

Restarting my computer helped me solve this problem.

Upvotes: -1

Sourabh
Sourabh

Reputation: 21

Port 8080 was not available in network , issue could be resolved by updating dev property in quasar.config.js

devServer: {
      // https: true,
      //port: 8080,
      open: true // opens browser window automatically
    },

Uncomment port and change the default port number, for e.g. port: 8089

Upvotes: 2

Nick Kanavati
Nick Kanavati

Reputation: 27

I recently had this error and it resolved when I restarted my machine.

If that doesn't work for you I would try port 80 as a quick check to see if it is a problem with a closed port. Port 80 is for HTTP so it should be open.

quasar dev -p 80

If that works, then port 8080 might not be setup to run your local server.

To check port availability I use nmap (https://nmap.org/). If you install it and want to check a port from the command line run something like:

nmap localhost -p 8080

Upvotes: 2

Related Questions