Created
July 7, 2015 13:35
-
-
Save davidrapin/0136544893b82fe0d81e to your computer and use it in GitHub Desktop.
Diagnose "node spawn ENOENT"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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
found at http://stackoverflow.com/questions/27688804/how-do-i-debug-error-spawn-enoent-on-node-js