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

后端 未结 25 2665
轻奢々
轻奢々 2020-11-22 03:00

When I get the following error:

events.js:72
        throw er; // Unhandled \'error\' event
              ^
Error: spawn ENOENT
    at errnoException (chil         


        
25条回答
  •  北海茫月
    2020-11-22 03:29

    As @DanielImfeld pointed it, ENOENT will be thrown if you specify "cwd" in the options, but the given directory does not exist.

提交回复
热议问题