How do I restart my node.js file every time when I update the file?

I have a node.js file, how can I make node.js file restart when I update or change anything in the file?

You can change refresh and restart behaviours by adding a watch.json file to your project. See https://glitch.com/faq#restart

1 Like