Where can I find node.js interpreter

Viewed 42532

In WebStorm to get karma.conf running I need to configure it in a pop up window and enter the "path to the node.js interpreter".

(for some reason this information vanished after a restart)

Questions:

  1. What is the path to the needed file?
  2. Where is the node interpreter on Mac/Linux/Windows by default?

(I am on OS X)

6 Answers

On OSX if you've installed Node.js with brew:

/usr/local/bin/node

You can check the exact folder on your machine with the command which node

Important

When the finder opens on OSX, you won't be able to navigate to this path initially. You'll first need to navigate to the root folder e.g. Macintosh HD and then perform the keyboard shortcut Command + Shift + . (. = dot = period) to be able to select hidden files and folders.

enter image description here

This can be useful for someone. I tried all the previous methods on Linux Ubuntu 19.10, none worked, neither reinstalling nodejs. So I installed Webstorm via snap, with:

sudo snap install webstorm
sudo snap install webstorm --classic

And surprise, Nodejs was already configured in this version. Then I erased the webstorm version that I installed from Ubuntu Softwared. That worked for me and was easy. Hope that can give you a clue.

Related