- Add new build systems via
Tools > Build System > New Build System
. - Save files as Language.sublime-build
- Any commandline tool for compiling code can be used.
- Cmd + B (OSX) will build files and send output to the Sublime Console
Here you can see where to create new builds and to setup automatic build types.
Hi, @brandl3s. Using the method posted in this Gist requires you have Node.js installed on your computer. It's what Sublime will execute the JavaScript file. If you haven't installed Node yet, you'll have to do that first.
The error message you received is saying that the system doesn't know what 'node' is, that it can't find the installation. So, much like carmanchris31 above, you'll need to provide the file path that Sublime should use to find your Node installation.
If you have Node installed, you can run the terminal command,
which node
to determine the path to your installation. You can then replacenode
with that path and things ought to work correctly.Here's what mine build file looks like.
The one carmanchris31 posted above should also work.
Hope that helps.