Bower support : node is not reconized

Good day, 

 

I am trying to configure IntelliJ to support Bower and unfortunately there is a problem : it says that it cannot load packages. In logs there is a stacktrace : 

 

Caused by: com.intellij.execution.ExecutionException: Exit code of 'C:/nodejs/bower.cmd search --json' is 1. Stdout:


stderr:
'node' is not recognized as an internal or external command,
operable program or batch file.

at com.intellij.lang.javascript.bower.BowerCommandRun.captureOutput(BowerCommandRun.java:41)
at com.intellij.lang.javascript.bower.BowerAvailablePackagesManager.lambda$getOrCreateLoadRun$0(BowerAvailablePackagesManager.java:73)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.intellij.lang.javascript.bower.BowerAvailablePackagesManager.getOrCreateLoadRun(BowerAvailablePackagesManager.java:88)
at com.intellij.lang.javascript.bower.BowerAvailablePackagesManager.getOrLoadAvailablePackages(BowerAvailablePackagesManager.java:48)
... 9 more

 

While at the same time just running "node" from terminal works perfectly fine :( 

Could you please help me out here ? 

 

Thank you for your help and time.

 

1 comment
Comment actions Permalink

is 'node' on your %PATH%? Please restart Webstorm - does the problem persist? If yes, try running `echo %PATH%` in its terminal - what is the result? also, try running `C:/nodejs/bower.cmd search --json` in terminal and provide the output

0

Please sign in to leave a comment.