Here’s the best documentation we have for you to follow to debug:
Pay special attention to the section about syncing versions between your local, and Netlify.