Use one of the tools to automatically restart node.js, from https://stackoverflow.com/questions/8951297/automatically-restarting-service-via-forever-for-nodejs .
This makes it easier to develop.
I haven't tried it yet, but two main ones are apparently nodemon and forever.