I have my nodejs running on port 9090 and I somehow made it work on port 80 by using the following setup
sudo apt-get install libcap2-bin sudo setcap cap_net_bind_service=+ep
and when I run as nodejs server.js 80, I'm able to run my client as localhost without any port specified.
But when I run the same with nodemon server.js 80, it throws an error
Error: listen EACCES 0.0.0.0:80
How can I run it with nodemon and port 80
Thanks in advance.