title: How to run RequireJS optimizer via Sublime Text 2 Build System
body: <p>My build config looks like this.</p>
  
  <pre><code>{
    "cmd": ["node r.js -o app.build.js"],
    "working_dir": "$project_path"
  }
  </code></pre>
  
  <p>The Sublime error log looks like this:</p>
  
  <pre><code>[Errno 2] No such file or directory
  [cmd:  [u'node r.js -o app.build.js']]
  [dir:  /Users/janjarfalk/Desktop/Projects/Template]
  [path: /Users/janjarfalk/Desktop/Projects/Template]
  [Finished]
  </code></pre>
  
  <p>And the Sublime console looks like this:</p>
  
  <pre><code>Running node r.js -o app.build.js
  </code></pre>
  
  <p>If I run "node r.js -o app.build.js" in "/Users/janjarfalk/Desktop/Projects/Template" in the Terminal it works.</p>
  
  <p>What am I doing wrong?</p>