title: NodeJS Sublime Text Build System
body: <p>I've installed Sublime Text's NodeJS plugin which provides a NodeJS build that looks like this:</p>
  
  <pre><code>{
    "cmd": ["node", "$file"],
    "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
    "selector": "source.js",
    "shell":true,
    "encoding": "cp1252",  
    "windows":
      {
          "cmd": ["taskkill /F /IM node.exe &amp; node", "$file"]
      },
    "linux":
      {
          "cmd": ["killall node; node", "$file"]
      }
  }
  </code></pre>
  
  <p>I've compiled <code>node</code> myself and located into: <code>/opt/node/v0.10.24</code>. The full path to the bin being <code>/opt/node/v0.10.24/bin/node</code>.</p>
  
  <p>I'm testing this with a simple file containing <code>console.log('Hello World');</code></p>
  
  <p>When running the build system I get:</p>
  
  <pre><code>/Users/jviotti/Desktop/test.js: node: command not found
  [Finished in 0.0s with exit code 127]
  </code></pre>
  
  <p>I tried adding a <code>path</code> to the build like this:</p>
  
  <pre><code>"path": "/opt/node/v0.10.24/bin",
  </code></pre>
  
  <p>And when running the build I get just:</p>
  
  <pre><code>[Finished in 0.1s]
  </code></pre>
  
  <p>Notice that the console log is not printed. What am I missing?</p>
  
  <p><strong>EDIT:</strong> This is the NodeJS plugin I use: <a href="https://github.com/tanepiper/SublimeText-Nodejs" rel="nofollow">https://github.com/tanepiper/SublimeText-Nodejs</a></p>