title: Node.js spawn ENOENT error
body: <p>So I followed <a href="https://stackoverflow.com/questions/27688804/how-do-i-debug-error-spawn-enoent-on-node-js/27688805#27688805">this answer</a> and made it to the last step, correctly I think. But then what? I'm trying to run a node file, but it doesn't appear to be in the file listed at the PATH directory. How am I supposed to get it in that folder?</p>
  
  <p>My node entry file:</p>
  
  <pre><code>'use strict';
  
  var express = require("express");
  var child_process = require("child_process");
  
  var app = express();
  
  
  app.get("/go", function(req, res, next) {
    var stream = child_process.spawn("node file.js").on("error", function(error) {
      console.log("Error!!! : " + error);
      throw error;
    });
  });
  
  app.get("/", function(req, res, next) {
    console.log("Hit main page.");
    res.end("Got me.");
  });
  
  app.listen( (process.env.PORT || 4000), function() {
    console.log("Example app listening on Heroku port " + process.env.PORT + " or local port 4000!");
  });
  </code></pre>
  
  <p>And file.js, the file I'm attempting to open:</p>
  
  <pre><code>'use strict';
  
  function sayHello() {
    console.log("Hello.");
  }
  
  sayHello();
  </code></pre>