reveal.js Setup Error - FIX
Error: Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime (88)
I've recently been intrigued by reveal.js , an open source HTML presentation framework, and decided to use it for an ongoing project.
It's really easy to get up and running, however I did run in to an issue with node-sass
, a dependency of gulp-sass
after using the recommended setup method, so here is my fix...
Install Node.js (10.0.0 or later)
Clone the reveal.js repository
$ git clone https://github.com/hakimel/reveal.js.git
Move to the reveal.js folder and install dependencies
$ cd reveal.js && npm install
Replace
node-sass
withsass
$ npm uninstall node-sass && npm install sass
Update
gulpSass.compiler
prop tosass
innode_modules/gulp-sass/index.js:166
gulpSass.compiler = require('sass');
There should no longer be errors when you serve the presentation and monitor source files for changes using
$ npm start
Open localhost:8000 to view your presentation
Hopefully, this issue wont be about for much longer, as there is already an open PR for gulp-sass
to use sass
instead.
No Comments Yet