-
Notifications
You must be signed in to change notification settings - Fork 29.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Got Node process error: Error: spawn npm ENOENT when debug node.js #31433
Comments
I am getting the same error, on Win10. Contents of Help/About...
This is on a fresh install of VSCode, with no extensions or settings changes at all (simply loaded the project root folder that I am trying to debug.) However, since I have been running my script manually using...
...from my project root (without issues otherwise) I thought I would adjust the the launch.json file's
...hoping the solve the problem that seemed to indicate it can't find an executable/script. Yet I get exactly the same error as OP posted in the "DEBUG CONSOLE"...
There is no information in either the "PROBLEMS" or "OUTPUT" tabs. |
I was able to fix this problem (as outlined here) by changing the
However, now I am seeing the following error message (which I am guessing is a different issue.)
|
Missing In the second case, |
@roblourens - The referenced docs point us to, "--debug-brk", but your input above indicates we should use "--inspect-brk=port". Which should we use and why? Also, am I missing anything or is there an easy way to coordinate the port setting in launch.json vs package.json npm scripts? |
One way to make it a little less redundant is to rely on the default ports - |
Steps to Reproduce:
Reproduces without extensions: No
===================
I try to debug
node.js
in VScode, then get error is, and my
launch.json
is:and if I change protocol to legacy, I'll get another error
The text was updated successfully, but these errors were encountered: