Your node
executable file cannot be found by the build system, as it does not reside in any of the directories listed in path
in the error message. To fix this, open Terminal and run
which node
to find out where the executable is. Copy the full path, then open the .sublime-build
file you made and insert the full path to node
. For example, if which node
returns /usr/local/bin/node
, then your .sublime-build
file should look like this:
{
"cmd": ["/usr/local/bin/node", "$file"],
"selector": "source.js"
}