1. Install node, this is simple, not much to say. Mounted on the C drive by default, you may set their own drive letter, such as D, E
2.打开Sublime Text -> Tools -> Build -> Build System -> New Build System
3. Empty the contents, and paste the following, and name the file node.sublime-build (the best file storage directory selected node installation directory, easy to manage):
{ "cmd": ["node", "$file"], "selector": "source.js" }
* Note: If your custom installation node, the path here, should be replaced by their path node , specifically paste as follows (in D drive, for example):
{ "cmd": ["D:/Program Files/nodejs/node", "$file"], "selector": "source.js" }
4. After completion of the above, you can create a new file js verified. Js run the shortcut in the sublime is Ctrl + B. If you want to refresh it again, then again Ctrl + B, the result probably looks like this: