3

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?

Gino Mempin
  • 19,150
  • 23
  • 79
  • 104
Gunacelan M
  • 181
  • 1
  • 9
  • Maybe check https://stackoverflow.com/questions/23412938/node-is-not-recognized-as-an-internal-or-an-external-command-operable-program – Akrion Aug 03 '18 at 06:53

2 Answers2

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.

Jun Han
  • 12,741
  • 7
  • 25
  • 30
1

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

code-runner.runInTerminal

and ticking it on.

Dharman
  • 26,923
  • 21
  • 73
  • 125
ian
  • 11
  • 2