Collisions on client, versus server occur at different locations

You can use electron to debug the physics on your server: Phaser 3 - Real-Time Multiplayer Game with Physics #2

You can code your server side game in an isomorphic way to be able to run it on electron (debug) or node.js (production).