4

After I installed Code Runner in VS Code then used it to run my JS code, I'm getting this runtime error:

'node' is not recognized as an internal or external command, operable program or batch file.

What does that mean?

1

3 Answers 3

2

What also helped me was (after installing node) going into VS settings, finding

code-runner.runInTerminal

and ticking it on.

Sign up to request clarification or add additional context in comments.

1 Comment

It's not working for me. I think extra step is needed. It was giving the error: "node : The term 'node' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again."
1

The error message means you have not installed Node.js on your machine. Make sure you have installed the Node.js from https://nodejs.org/en/, and set the correct PATH environment variable.

Comments

0

With the error during installation of node js make sure the add path is checked before installation. When the installation is done restart the vs code. It should be fine.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.