npm install -g yo
npm install -g generator-slides
npm install -g sero-cli
yo slides
然后命令会提示各种问题等你回答
- Your slides name : 幻灯片名称
- Your slides description : 幻灯片描述
- Your name : 你的名字
- Your email : 你的邮箱
- Choose a theme of this sliders : 选择一个主题样式
- Choose plugins you'd like to add : 选择你需要的插件(一般选择markdown)
进入创建的项目目录,用sero启动一个web服务
sero