visual studio code nodejs request 'launch': cannot launch target (reason: spawn node ENOENT)

后端 未结 4 1989
栀梦
栀梦 2021-01-18 18:52

When I use visual studio code to debug a nodejs app. visual studio code tell me request \'launch\': cannot launch target (reason: spawn node ENOENT)

4条回答
  •  遇见更好的自我
    2021-01-18 19:13

    Some discussions are posted in this here

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

    Especially, the following points should be checked

    • Ensure the environment variable PATH is set
    • PATHEXT environment variable that can cause certain calls to spawn to not work on Windows.

提交回复
热议问题