Search code examples
javascriptnode.jsspawn

/bin/sh not found -- spawnSync


after executing a command with execSync which executes with sh I noticed the following:

spawnSync /bin/sh ENOENT

bin is currently added to PATH.

any thoughts?


Solution

  • Normally the cause is that the path where you are executing this doesn't exist

    see the accepted answer in this question

    How do I debug “Error: spawn ENOENT” on node.js?