1, the installation NodeJS (next line)
2、打开sublime,Tools —> Build System —> New Build System
{
"cmd": ["C:/Program Files/nodejs/node.exe", "$file"],
"selector": "source.js"
}
Note:
C: / Program Files / nodejs / node.exe is the location of your installation nodejs, do not know if you can type in console: the WHERE the Node query
Then, save the file, named for JavaScript.
3、点击Tools —> Build System —> Build System —> JavaScript
4, Run: ctr + B or f7