I am using WebStorm as my Node.js IDE and recently I wanted to archive a way that I do not have to restart node.js manually after each code change. So here are the steps that worked for me on my Windows 7 development environment at work:
Install supervisor globally using a CLI
npm install -g supervisor
In WebStorm/IntelliJ add configuration for non-debug:
Name: supervisor app.js Path to node: C:\Program Files (x86)\nodejs\node.exe Node Parameters: "c:\Users\<user name>\AppData\Roaming\npm\node_modules\supervisor\lib\cli-wrapper.js" --exec "c:\Program Files (x86)\nodejs\node.exe" --no-restart-on exit Working directory: <path to your working directory> Path to Node App JS File: <path to your app.js>
These paths are for Windows 7 so you’ll have to replace the above paths with paths on your machine. Next, you’ll be able to run this in debug mode but it doesn’t step through the code.
For debugging you can either use the remote debugger or just have a different run target for debugging without using supervisor.








