刚接触node.js,使用sublime text3配置node.js编译环境一直出现no build system。
尝试了网上各种配置,最后均失败,请教是哪里出了问题?谢谢
Nodejs.sublime-build 配置:
{
"cmd": ["D:\\Program Files\\nodejs\\node.exe", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.js",
"shell": true,
"encoding": "utf8",
"windows":
{
"shell_cmd": "taskkill", "/F", "/IM", "D:\\Program Files\\nodejs\\node.exe", "&", "node", "$file"
},
"linux":
{
"shell_cmd": "killall node; /usr/bin/env node $file"
},
"osx":
{
"shell_cmd": "killall node; /usr/bin/env node $file"
}
}
Nodejs.sublime-settings 配置:
{
"save_first": true,
"node_command": "D:\\Program Files\\nodejs\\node.exe",
"npm_command": "D:\\Program Files\\nodejs\\npm.cmd",
"node_path": false,
"expert_mode": false,
"ouput_to_new_tab": false
}
编译新系统配置:
{
"cmd": ["node", "$file"],
"selector": "source.js"
}
菜单:工具--编译系统--Nodejs 也有,alt-R 也可运行Nodejs。
但是无法编译,一直提示 no build system