Node not available for intellij

I am trying to get the debugging working in Intellij but getting this error when pressing the bug icon:

12:36:11.067 [error] Could not start watcher because "node" is not available. Your Phoenix application is still running, however assets won't be compiled. You may fix this by installing "node" and then running "cd assets && npm install".
12:36:13.150 [error] #PID<0.9090.0> running EprWeb.Endpoint (cowboy_protocol) terminated

When I press the play icon everything works fine and the application run correctly.

I am using nvm as Node Version Manager. This is the output for “which node” command:

> which node
/home/jalcerro/.nvm/versions/node/v6.13.0/bin/node

Thanks for the help.

Best regards,

1 Like