Skip to content

Instantly share code, notes, and snippets.

@davidrapin
Created July 7, 2015 13:35
Show Gist options
  • Save davidrapin/0136544893b82fe0d81e to your computer and use it in GitHub Desktop.
Save davidrapin/0136544893b82fe0d81e to your computer and use it in GitHub Desktop.
Diagnose "node spawn ENOENT"
(function() {
var childProcess = require("child_process");
var oldSpawn = childProcess.spawn;
function mySpawn() {
console.log('spawn called');
console.log(arguments);
return oldSpawn.apply(this, arguments);
}
childProcess.spawn = mySpawn;
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment