https://github.com/hakimel/reveal.js#installation
1.install Node.js
brew install nodejs
2. install Grunt
http://gruntjs.com/getting-started#installing-the-cli
npm install -g grunt-cli npm install grunt --save-dev
3. Clone the reveal.js repository
$ git clone https://github.com/hakimel/reveal.js.git
4.Navigate to the reveal.js folder
$ cd reveal.js
5.Install dependencies
$ npm install
6.Serve the presentation and monitor source files for changes
$ grunt serve
7.Open http://localhost:8000 to view your presentation
You can change the port by using grunt serve --port 8001
.
原文:http://www.cnblogs.com/iwangzheng/p/3913511.html