安装gitbook教程很多,我这里就不详细展开了,这里主要说一下我安装gitbook中所遇到的坑。
问题:安装gitbook出现
TypeError: cb.apply is not a function
解决办法:nodejs 降版本
问题:使用gitbook编译后公式显示为源码
解决办法:安装mathjax插件
问题:安装mathjax失败
PluginError: Error with plugin "mathjax-pro": Cannot find module 'mathjax/unpacked/MathJax'
解决办法:先安装mathjax@2.7.6
问题:安装报错
npm WARN saveError ENOENT: no such file or directory, open 'C:\Users\username\package.json'
解决办法:<