L
L
lil_koi2019-11-18 22:19:59
Node.js
lil_koi, 2019-11-18 22:19:59

Why is the Node.js environment not working in vs code?

In the node.js command console, the code runs, but in the vs code terminal, the error is
node : The name 'node' is not recognized as the name of a cmdlet, function, script file, or executable. Check the spelling of the name and the presence
and correctness of the path, then try again.
I have no idea what happened, everything worked before

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
abberati, 2019-11-19
@abberati

You have different terminals in "console" and in "vscode". One has a node in PATH, and the other does not. Google the text of the error - you will find a solution.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question