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

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

    Add C:\Windows\System32\ to the path environment variable.

    Steps

    1. Go to my computer and properties

    2. Click on Advanced settings

    3. Then on Environment variables

    4. Select Path and then click on edit

    5. Paste the following if not already present: C:\Windows\System32\

    6. Close the command prompt

    7. Run the command that you wanted to run

    Windows 8 Environment variables screenshot

提交回复
热议问题