console.log() is not printed when using (Ctrl + alt + n) in Ubuntu, with Code Runner installed

Asked

Viewed 43 times

-1

I started the study of Nodejs using Windows and over time I made the switch to Ubuntu operating system. I installed the Node on the machine, Vscode, and the Code Runner extension, all the same as the old system. But when trying to execute a code directly in Vscode using the command (Ctrl + alt + n) I get the return of the execution:

[Running] Node "/home/Desktop/teste.js"

[Done] exited with code=0 in 0.138 Seconds

But I don’t get what I should see when I put a.log() console in my code. That is, when I run

console.log("teste")

should show up:

[Running] Node "/home/Desktop/teste.js"

test

[Done] exited with code=0 in 0.138 Seconds

But this is not happening... Do you know why? I thank you for your help

  • I did a test here on my Ubuntu, happened exactly what you expect, you came to write your file?

  • Yeah, I did. How weird that it worked out for you and not mine :/

1 answer

1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.