I have a node.js Express backend API application and we use yarn and pm2.
I know the version has been upgraded from node 11 to node 12 so I installed 12 using nvm install 12
When I update the sourcecode via git and do yarn start
, there is an error saying it does not have the permission to run the application on port 80. Just out of curiosity I switched back to node 11 using nvm, and run yarn start
without changing any source code or config, and the application started.
Does anyone has pointers as to why Node 12 does not seem to have permission required to start a service on port 80 , while node 11 could?
If this is related to the way I installed node 12 using nvm install 12
, can someone point me to the right resources where I can understand more about nvm's encapsulation and permission settings ? thanks.
EDIT : As a workaround as Lawrence suggested, I reroute it to run on 8080. Back to the core of the question, why does Node 11 has permission , but Node 12 does not have the permission required to run on port 80?