Can somebody explain how to run my reactJS app on port 80, without specifying port
currently it works on www.mydomain.com:3001 but I want it to be visible when I go to www.mydomain.com
I can't find the solution on create-react-app docs website so I'm asking here.
If I run application with
sudo npm start
I get error that something is already using port 80 (I did specify PORT= 80)
Thanks
npmdoes not haverootprivilege. That means, If you try to run any application which uses port below than1024port, you need asudoaccess. If that is the case, you can run yourcreate-react-appwithsudo PORT=80 npm start. That should do the job. Hope this helps