Monday, 13 May 2019

Errors in Node please help

Hi, I just installed node.js for Windows using (.msi) application. Then I installed npm using cmd. I made sure both are installed by typing "node -v" and "npm -v".I created a simple program to print "hello world" on the console. I tried to run it with "node hello.js" but I got this error (image).When I open nodejs.exe and type the code "console.log('hello world');" it prints perfectly. So the problem is clearly with executing the code stored in a file.Note: I know the directory says DiscordBot, but that's different, it has nothing to do with this. I have had the same issues in different directories.

Submitted May 13, 2019 at 10:47AM by rhinodiablo

No comments:

Post a Comment