- The node package for sublime
- Installed the
Nodejs
package with the sublime text 2 package manager - Edited my:
~/Library/Application Support/Sublime Text 2/Packages/Nodejs/Nodejs.sublime-build
to include the line:"path" : "/usr/local/bin",
- (gotten from running
which node
in the terminal)
- Also edited my: ~
/Library/Application Support/Sublime Text 2/Packages/Nodejs/Nodejs.sublime-settings
from"node_command": false,
- TO
"node_command": "/usr/local/bin/node",
- UPDATE: a week later, these 2 settings got cleared. Popup window for code execution would not work without the additional line:
"node_path": "/usr/local/bin/",
being added to: ~/Library/Application Support/Sublime Text 2/Packages/Nodejs/Nodejs.sublime-settings
- Then, was able to press
^R
to see the results of my code (traditionalcmd+B
does not return errors anymore, but also does not print the results of the code) - I also installed sublime linter and jslint to get some really nice syntax highlighting (jshint does the same thing, and has more useful error messages)
- More stuff
- Installed the
Advertisements