Node js app crash after a publish

Hi
sometimes when I click publish button on a Node js app the site is become inaccessible with an error.
What I need to do is to delete node_modules folder from the server an reinstall node again. After that the app is accessible.
What could be the problem ?
Thanks

Find a way to see the error log, then you don't have to guess :slight_smile:

You also don't provide information about your setup, like, are you using shared hosting? Are you using a control panel? Are you using Wappler's Docker deployment?

Thanks Apple
It’s a managed cloud VPS.
I start the app with a PM2 process manager.
I don’t have CPanel or Plesk just ssh access.
No docker deployment.
Due to the fact that not always I have this error I will provide the error code the next time it will occur.