-1

I tried running a simple javascript program

console.log('Hi');

However, when I try to run it - it gives me an error in the output:

/bin/sh: node: command not found

Any idea how to fix this?

Bravo
  • 1
  • 2
  • 1
    Does this help you ? https://stackoverflow.com/questions/31778413/run-javascript-in-visual-studio-code – Harmandeep Singh Kalsi May 25 '20 at 09:50
  • 1
    Does this answer your question? [Run JavaScript in Visual Studio Code](https://stackoverflow.com/questions/31778413/run-javascript-in-visual-studio-code) – Mechanic May 25 '20 at 09:51

1 Answers1

1

Install Node (or, if it is already installed, make sure it is on your PATH).

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335