Skip to content
Advertisement

node.js express permission error on linux

using arch with admin user account and no sudo on this script:

JavaScript

i get this error that didnt change when i changed the port or the url to trigger it it instantly gives me this error after i run the command: node site.js (the code above is site.js)

JavaScript

if i run the script with sudo it works fine but i dont want to run it in sudo beacuse i have to run it on a server with no sudo. any help?

Advertisement

Answer

Using port below 1024 without root permission is common issue. Try port bigger than 1024.

Advertisement