Node js Error: spawn ENOENT Node js Error: spawn ENOENT node.js node.js

Node js Error: spawn ENOENT


It's likely failing because it can't find the convert application. Does the path to convert exist in your environment PATH? Can you run convert from your terminal?


I was getting the error

Uncaught Error: spawn myExeCommand ENOENT

Once I added 'options' to the spawn(), it worked.

let options = {shell: true};let theProcess = child_process.spawn(myExeCommand, null, options);


I had this same issue running from Linux. I did the npm install unoconv and thought that that would take care of installing the convert application, but only when I had installed it could I get it to run in Node.jssudo apt-get install unoconv