JCML JCML - 6 months ago 68
Node.js Question

Installing reveal.js on Node

I'm trying to install reveal.js on Node so I can use the speaker notes locally.

I'm following the instructions without success: https://github.com/hakimel/reveal.js/#full-setup

I get these errors on the first step:

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)

Let me know if you need any more info. I installed Node v4.4.6 LTS.

joe joe

I just followed the instructions using Node.js version: v5.7.0 (npm version v3.8.1) without any issues.

I recommend installing nvm (https://github.com/creationix/nvm), so you can easily switch Node versions to resolve issues like this.


Follow these instructions to install git, if you cannot clone the repository:


Make sure you don't copy the $ when you paste the command in the instructions into your terminal.