On my windows 10 with nodejs and visualstudio code installed, I just can't debug with VS code even with sample code by Microsoft- https://code.visualstudio.com/docs/runtimes/nodejs
The error is "request 'launch': cannot launch target(reason:spawn node ENOENT)", which looks like to be some configuration issue, and checked nodejs did install under C:\Program Files\nodejs.
I saw one same question on stackoverflow - visual studio code nodejs request 'launch': cannot launch target (reason: spawn node ENOENT) , but there's no help answer, would anyone have suggestion on this? Thanks in advance!