Here are few things that you need to check
- Is Node.js correctly installed on the server? Please verify it with your hosting provider
- Missing package.json/dependencies.
- Check if there is port conflicts or not
- Ask your hosting provider to check error logs since 502 error is generic error