1

I would like to run the code:

console.log("Node is installed!");

This is clearly error-less code, but upon running it, I get this error: Stupid Error 800A1391

I looked up how to fix this, and they told me to run the file like this:

node myfirst.js

I looked more around the internet and was directed to update everything, and check the versions. I have node, NPM, Java, and javascript installed. I still can't run this with updated systems. Even with a blank file, it still sends error codes. I tried running it, all these ways:

node myfirst.js
npm myfirst.js
run myfirst.js
myfirst.js

All of these attempts were illfated, resulting in code 800A1391. Any help alternate to the answers I have seen several times online would be greatly appreciated! Thanks for your time in reading this.

  • 1
    try checking your node version in the terminal like. `node -v` – Jalil Oct 26 '18 at 01:15
  • see [this question](https://stackoverflow.com/questions/33975327/microsoft-jscript-runtime-error-code-800a1391-console-is-undefined-while-r) – Rocky Sims Oct 26 '18 at 01:46
  • Make sure you have the correct environment variables set for your operating system. – Jamin Oct 26 '18 at 01:54
  • simply run 'node' in your command prompt/terminal and see if it takes you to node REPL mode. If it does not then set your env. variables correctly. – xan_z Oct 26 '18 at 02:04

0 Answers0