NodeJS崇高的文本生成系统

我已经安装了Sublime Text的NodeJS插件,它提供了一个如下所示的NodeJS构build:

{ "cmd": ["node", "$file"], "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", "selector": "source.js", "shell":true, "encoding": "cp1252", "windows": { "cmd": ["taskkill /F /IM node.exe & node", "$file"] }, "linux": { "cmd": ["killall node; node", "$file"] } } 

我自己编译node ,位于: /opt/node/v0.10.24 。 bin的完整path是/opt/node/v0.10.24/bin/node

我正在testing这个包含console.log('Hello World');的简单文件console.log('Hello World');

运行构build系统时,我得到:

 /Users/jviotti/Desktop/test.js: node: command not found [Finished in 0.0s with exit code 127] 

我尝试添加一个像这样的构build的path

 "path": "/opt/node/v0.10.24/bin", 

而运行构build时,我只是得到:

 [Finished in 0.1s] 

注意控制台日志不被打印。 我错过了什么?

编辑:这是我使用的NodeJS插件: https : //github.com/tanepiper/SublimeText-Nodejs

这应该做的..

 { "cmd": ["node $file"], "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", "selector": "source.js", "shell": false, "encoding": "cp1252", "windows": { "cmd": ["taskkill /F /IM node.exe && node $file"] }, "linux": { "cmd": ["killall nodejs 2>/dev/null; nodejs $file"] // or node, if built from source } } 

发现问题。 评论"shell": true解决问题。