I am trying to run my Node application as a Grunt task. I need to spawn this as a child process, however, to allow me to run the watch task in parallel.
This works:<
Take a look at grunt-nodemon which handles a lot of the headaches related to spawning a child process.