O meu arquivo index.js está assim:
const paragrafo = "Texto retornado por uma função"; function texto(string){ return string; }
console.log(texto(paragrafo));
Ao executar node index.js no terminal, é exibida a seguinte mensagem:
C:\users\Alessandra\documents\alura\nodejs\index.js:7 ^
SyntaxError: Unexpected token '<' ←[90m at Object.compileFunction (node:vm:352:18)←[39m ←[90m at wrapSafe (node:internal/modules/cjs/loader:1031:15)←[39m ←[90m at Module.compile (node:internal/modules/cjs/loader:1065:27)←[39m ←[90m at Object.Module.extensions..js (node:internal/modules/cjs/loader:1153:10)←[39m ←[90m at Module.load (node:internal/modules/cjs/loader:981:32)←[39m ←[90m at Function.Module.load (node:internal/modules/cjs/loader:822:12)←[39m ←[90m at Function.executeUserEntryPoint [as runMain] (node:internal/modules/runmain:81:12)←[39m ←[90m at node:internal/main/run_main_module:17:47←[39m