title: Android Studio setting node directory for build (Cause: error=2, No such file or directory)
body: <p>My project build fails because it's using the incorrect directory to run Node. How do I go about setting the Node directory for these compile-time tasks?</p>
  
  <p>The specific task is:</p>
  
  <blockquote>
    <p>app:recordFilesBeforeBundleCommandDebug</p>
  </blockquote>
  
  <p>And the related error:</p>
  
  <pre><code>org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:recordFilesBeforeBundleCommandDebug'.
  Caused by: org.gradle.process.internal.ExecException: A problem occurred starting process 'command 'node''
  Caused by: net.rubygrapefruit.platform.NativeException: Could not start 'node'
  Caused by: java.io.IOException: Cannot run program "node" (in directory "/Users/me/Code/appname/android/app"): error=2, No such file or directory
  Caused by: java.io.IOException: error=2, No such file or directory
  </code></pre>