Search code examples
node.jsgruntjswebstorm

Debugging node.js app in webstorm


I have strange problem with node.js app. I can start it with grunt task, typing

grunt

in terminal, from project folder. But when I try to start application from webstorm, I have an error

Running "nodemon:dev" (nodemon) task Fatal error: Error: not found: node Warning: Used --force, continuing.

Running "watch" task Waiting...

Webstorm configurations.

  1. Node interpreter: {path to node}
  2. Working directory: {path to project}
  3. JavaScript file: {path to grunt}

Solution

  • I've had the exact same problem and just now updating to the latest version of Webstorm has solved the problem for me. You said you're on version 7.0 so see if the upgrade helps you as well.

    Have a look here for some more discussion.

    I also had to make sure to set the remote paths in the JavaScript debug to avoid having extra windows pop up.