Unable to execute the Javascript Program


#1

I am new to Mac and ATOM and trying to execute javascript , but while running the script got the below error.

bash: node: command not found
env: node: No such file or directory

Please help me the steps how to execute the script successfully.

Thanks in advance.


#2

It sounds like you don’t have Node installed: https://nodejs.org/en/download/

(also, this is unrelated to Electron)