1, download Nodejs plug-in, for:
Https://github.com/tanepiper/SublimeText-Nodejs
Download the zip archive and unzip it and change the file name to Nodejs
2. Open Sublime Text3, click the Menu "Perferences" and "Browse Packages" to open the "Packages" folder and cut the Nodejs folder in the 1th section.
3, open the file "Nodejs.sublime-build", The Code "encoding": "cp1252" to "encoding": "UTF8 " , the code "cmd": ["taskkill/f/im Node.exe & Node", "$file"] instead "cmd": ["Node", "$file"] , save the file
4. Open the file "Nodejs.sublime-settings" and change the code "Node_command": false to "Node_ Command ":" D:\\Program files\\nodejs\\node.exe " , code " Npm_command ": false instead "Npm_command": "D:\\Program files\\nodejs\\npm.cmd" , save file
5, write a test file test.js, press "Ctrl+b" run the code, run the result as shown:
At this point, the environment is configured successfully!
(Note: My system for the Win7,nodejs installation path is D:\Program Files\nodejs)
Sublime TEXT3 Configuring the node. JS Development environment