Apart from the accepted answer, these errors occur when nginx is started without systemd. Kill nginx: ps -ax | grep nginx>
You can't run two applications on the same address with the same port.
What you need to do is just change port of your application one with 80 and other application with some other port say 3000.
If you want your application to run only with 80 port than just remove the default file from
/etc/nginx/sites-available/default
and optionally also from
/etc/nginx/sites-enabled/default
You can run
sudo rm -rf /etc/nginx/sites-available/default
sudo rm -rf /etc/nginx/sites-enabled/default
Now you will be able to run one of your application on port 80