在Node上安装reveal.js

我正在尝试在Node上安装reveal.js,所以我可以在本地使用扬声器注释。

我按照说明没有成功: https : //github.com/hakimel/reveal.js/#full-setup

我在第一步得到这些错误:

SyntaxError: Unexpected identifier at Object.exports.createScript (vm.js:24:10) at REPLServer.defaultEval (repl.js:235:25) at bound (domain.js:287:14) at REPLServer.runBound [as eval] (domain.js:300:12) at REPLServer.<anonymous> (repl.js:431:12) at emitOne (events.js:82:20) at REPLServer.emit (events.js:169:7) at REPLServer.Interface._onLine (readline.js:211:10) at REPLServer.Interface._line (readline.js:550:8) at REPLServer.Interface._ttyWrite (readline.js:827:14) 

让我知道如果你需要更多的信息。 我安装了Node v4.4.6 LTS。

我只是遵循使用Node.js版本:v5.7.0(npm版本v3.8.1)没有任何问题的指示。

我build议安装nvmhttps://github.com/creationix/nvm ),所以你可以很容易地切换节点版本来解决像这样的问题。

编辑:

按照这些指示安装git ,如果你不能克隆版本库:

https://git-scm.com/book/en/v2/Getting-Started-Installing-Git

确保在将指令中的命令粘贴到terminal中时不要复制$