I have downloaded and installed node.js from https://nodejs.org/en/. I want to run a js file:
console.log(\'hello\');
I run nod
The problem was that I created the file by redirecting output from echo command in powershell. It had UTF-16 LE encoding, should be UTF-8
Did you copy some unicode characters from word or something?
try retyping the console.log('hello')
Something like this has happened to me before, when I copied some code from a word document.