"node" "is not recognized as an internal or external command, program or batch file executable

1

Hello, how are you? I would like to know if anyone knows how to solve the following error in atom:

  

"node" "is not recognized as an internal or external command,   program or batch file executable.   [Finished in 0.208s]

Install the package " script ", to be able to run as a console, in the " Javascript " language, but when executing it, it gives me the mentioned error. Try running other scripts in html, python, etc and they run without problems. It is with javascript that it does not let me execute. Do not show an error on the screen.

Does anyone know how to fix it?

Thanks in advance. Greetings.

    
asked by John Ramirez 05.02.2018 в 21:26
source

1 answer

1

Some languages have special requirements. In the case of JavaScript, Node.js is required and node is as variable of PATH .

Also, according to link to avoid the referred error it is indicated that Atom should be launched from the console / terminal. Additionally you must make sure to execute it in the required project path.

Textual quotation

  

Atom can not find node | ruby | python | my socks

     

Make sure to launch Atom from the console / terminal. This gives atom   all your useful environment variables. Additionally, make sure to run   it with the project path you need. For example, use

atom .
     

to get it to run with the current directory as the default place to   run scripts from.

     

If you really wish to open the atom from a launcher / icon, see this issue   for a variety of workarounds that have been suggested.

    
answered by 05.02.2018 / 22:03
source