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

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

    Before anyone spends to much time debugging this problem, most of the time it can be resolved by deleting node_modules and reinstalling the packages.

    To Install:

    If a lockfile exists you might use

    yarn install --frozen-lockfile
    

    or

    npm ci
    

    respectivly. if not then

    yarn install
    

    or

    npm i
    

提交回复
热议问题