I want to run my node app at port 80 in ubuntu 16.04. But the moment I'm trying to run my app with npm start
its throwing error Port in already in use whereas it's not in use. According to Github Reply, We need root privileges to run on ports below 1048 which is correct.
So the moment I'm trying to run my app like this sudo npm install
it's throwing sudo: npm: command not found
So can anyone suggest me, how to run npm start
with root privileges on ubuntu. I did googling but couldn't find anything.