If you want to fix the plugin path yourself. One option is to modify Nodejs.sublime-build. It is located in the sublime package directory:
Mac: ~/Library/Application Support/Sublime Text 2/Packages/Nodejs/Nodejs.sublime-build Linux: ~/.config/sublime-text-2/Packages/Nodejs/Nodejs.sublime-build
Note. In recent versions of OS X, the library folder is hidden. If in this case, select "Go"> "Go to Folder ..." from the menu and enter ~ / Library.
Change "cmd": ["node", "$file"] to "cmd": ["/usr/local/bin/node", "$file"] { "cmd": ["/usr/local/bin/node", "$file"], "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", "selector": "source.js", "shell":true, "encoding": "cp1252", "windows": { "cmd": ["taskkill /F /IM node.exe & node", "$file"] }, "linux": { "cmd": ["killall node; node", "$file"] } }
Finally, open the * .js file and press the + b command. Now everything should work fine.
Linux users: this file is identical on all operating systems. Finding a path to Nodejs.sublime-build may require a search. In most cases, it is located in ~ / .config / sublime-text-2 / Packages / Nodejs / Nodejs.sublime-build
source share