Estou usando a versão do node 8.11.2 e está dando esse erro de sintaxe:
C:\Users\Ultrabook\Desktop\OO>node index.js
C:\Users\Ultrabook\Desktop\OO\index.js:2
nome;
^
SyntaxError: Unexpected token ;
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:616:28)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:191:16)
at bootstrap_node.js:612:3
C:\Users\Ultrabook\Desktop\OO>node index.js
é por conta da versão o node?