#手動安裝:
下載地址:https://github.com/tanepiper/SublimeText-Nodejs
下載文件(SublimeText-Nodejs-master.zip)解壓并修改為:Nodejs
打開Nodejs文件夾,找到文件“Nodejs.sublime-build“,修改”encoding”: “cp1252”,為”encoding”: “utf-8”
要用sublime打開文件“Nodejs.sublime-settings” 或
設置preference ->package settings ->Nodejs ->setting-default 打開文件并 更改成以下代碼:
{// save before running commands"save_first": true,// if present, use this command instead of plain "node"// e.g. "/usr/bin/node" or "C:\bin\node.exe""node_command": "C:\\Program Files\\nodejs\\node.exe",// Same for NPM command"npm_command": "C:\\Program Files\\nodejs\\npm.cmd",// as 'NODE_PATH' environment variable for node runtime"node_path": true,"expert_mode": false,"ouput_to_new_tab": false
}
關閉重啟sublime text 3即可正常編輯和運行nodejs(Ctrl+b)運行Node.js