Узел REPL генерирует SyntaxError: неожиданный идентификатор

Я очень новичок в node.js. В узле REPL все работало нормально. Но что-то изменилось. Когда я пытаюсь выполнить файл, он показывает это ...

D:\Projects-2015\uniqueva>node
/>node module.js


SyntaxError: Unexpected identifier
    at Object.exports.createScript (vm.js:44:10)
    at REPLServer.defaultEval (repl.js:117:23)
    at bound (domain.js:254:14)
    at REPLServer.runBound [as eval] (domain.js:267:12)
    at REPLServer.<anonymous> (repl.js:279:12)
    at REPLServer.emit (events.js:107:17)
    at REPLServer.Interface._onLine (readline.js:214:10)
    at REPLServer.Interface._line (readline.js:553:8)
    at REPLServer.Interface._ttyWrite (readline.js:830:14)
    at ReadStream.onkeypress (readline.js:109:10)

Это происходит даже тогда, когда я пытаюсь это ...

node --version

У меня есть следующий код в module.js ..

var http = require("http");

http.createServer(function(request, response){
    response.writeHead(200, {"Content-Type" : "text/plain"});
    response.write("Hello World");
    response.end();
}).listen(8888);

..но даже если я пытаюсь только что-то console.log или просто оставляю файл пустым, это та же проблема ..

Ответы на вопрос(0)

Ваш ответ на вопрос