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

后端 未结 25 3169
轻奢々
轻奢々 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:25

    In my case, I was getting this error thrown due to the necessary dependent system resources not being installed.

    More specifically, I have a NodeJS app that is utilizing ImageMagick. Despite having the npm package installed, the core Linux ImageMagick was not installed. I did an apt-get to install ImageMagick and after that all worked great!

提交回复
热议问题