Skip to content Skip to sidebar Skip to footer

Node.js Spawn/exec/execfile/win-spawn/cross-spawn All Throwing Error: Spawn Enoent

For context, routes\index.js:87 is around my exec (sync) or inside my exec (async). I am getting this error with either spawn, exec, or execFile, using the libraries child_process

Solution 1:

Where win-spawn and cross-spawn failed, spawn-cmd worked.

I have no idea why cross-spawn didn't work when spawn-cmd did, as they're pretty similar, but there you go. As to the original problem, I guess it's an issue with node.

Post a Comment for "Node.js Spawn/exec/execfile/win-spawn/cross-spawn All Throwing Error: Spawn Enoent"