为情所困2017-05-02 09:54:53
gitbook fetch 2.6.7
gitbook -v 2.6.7
参考:https://www.v2ex.com/amp/t/34...
我按照以上方法,发现还是不行,跟你出的问题一样。
又仔细研究了下,发现把其他版本卸载了,只保留2.6.7的就可以了
gitbook uninstall [version]
$ gitbook serve ./ --log=debug --debug
Live reload server started on port: 35729
Press CTRL+C to quit ...
debug: readme found at README.md
debug: summary file found at SUMMARY.md
debug: cleanup folder "D:workspacegithubgitbook_book"
info: 7 plugins are installed
info: loading plugin "livereload"... OK
info: loading plugin "highlight"... OK
info: loading plugin "search"... OK
info: loading plugin "lunr"... OK
info: loading plugin "sharing"... OK
info: loading plugin "fontsettings"... OK
info: loading plugin "theme-default"... OK
info: found 4 pages
info: found 3 asset files
debug: calling hook "config"
debug: calling hook "init"
debug: copy assets from theme C:Usersliuyun2.gitbookversions3.2.2node_modulesgitbook-plugin-theme-default_assetswebsite
debug: copy resources from plugin C:Usersliuyun2.gitbookversions3.2.2node_modulesgitbook-plugin-fontsettingsassets
Error: ENOENT: no such file or directory, stat 'D:workspacegithubgitbook_bookgitbookgitbook-plugin-fontsettingswebsite.css',Error: ENOENT: no such file or directory, stat 'D:workspacegithubgitbook_bookgitbookgitbook-plugin-fontsettingsfontsettings.js'
$ gitbook current
GitBook version is 2.6.7
$ gitbook serve ./ --log=debug --debug
Live reload server started on port: 35729
Press CTRL+C to quit ...
debug:添加块“html”
debug:添加块“code”
info:加载书籍配置....OK
info:加载插件gitbook-plugin-highlight ....OK
debug:添加块“code”
info: 加载插件 gitbook-plugin-search ....OK
info: 加载插件 gitbook-plugin-sharing ....OK
info: 加载插件 gitbook-plugin-fontsettings ....OK
info: 加载插件gitbook-plugin-livereload ....好的
信息:>>已加载 5 个插件
debug:标准化插件列表
debug:开始解析语言索引:LANGS.md
debug:开始解析自述文件:README.md
debug:自述文件位于 README.md
debug:开始解析摘要:SUMMARY.md
debug:摘要位于SUMMARY.md
debug:开始解析词汇表:GLOSSARY.md
info:使用网站生成器开始生成
info:清理网站生成器
debug:删除D:workspacegithubgitbook_bookgitbookfonts(2/18)
debug:删除D: workspacegithubgitbook_bookgitbookfontsfontawesome (3/18)
调试:删除 D:workspacegithubgitbook_bookgitbookfontsfontawesomeFontAwesome.otf (4/18)
调试:删除 D:workspacegithubgitbook_bookgitbookfontsfontawesomefontawesome-webfont.eot (5/18)
调试:删除 D:workspacegithubgit book_bookgitbookfontsfontawesomefontawesome-webfont.svg (6/ 18)
调试:删除 D:workspacegithubgitbook_bookgitbookfontsfontawesomefontawesome-webfont.ttf (7/18)
调试:删除 D:workspacegithubgitbook_bookgitbookfontsfontawesomefontawesome-webfont.woff (8/18)
调试:删除 D:workspacegithubgitbook_bookgitbookfontsfontawesomef ontawesome-webfont.woff2 (9/18)
调试:删除 D:workspacegithubgitbook_bookgitbookgitbook-plugin-fontsettings (10/18)
调试:删除 D:workspacegithubgitbook_bookgitbookgitbook-plugin-fontsettingsfontsettings.js (11/18)
调试:删除 D:workspacegithubgitbook_bookgitbookgitbook-plugin-fontsettingswebsite.css (12/ 18)
调试:删除 D:workspacegithubgitbook_bookgitbookgitbook.js (13/18)
调试:删除 D:workspacegithubgitbook_bookgitbookimages (14/18)
调试:删除 D:workspacegithubgitbook_bookgitbookimagesapple-touch-icon-precomposed-152.png (15/18)
debug: 删除 D:workspacegithubgitbook_bookgitbookimagesfavicon.ico (16/18)
debug: 删除 D:workspacegithubgitbook_bookgitbookstyle.css (17/18)
debug: 删除 D:workspacegithubgitbook_bookgitbooktheme.js (18/18)
info: OK
debug: 调用hook config
debug: 传输文件夹chapter1/
debug: 传输文件夹end/
debug: 处理README.md 0%
debug: 开始解析文件README.md
debug: 渲染模板README.md
debug: 使用文件解析器markdown README.md
debug:调用hook page
debug:索引页面README.md
debug:将解析文件README.md写入index.html
debug:处理chapter1/README.md 25%
debug:开始解析文件chapter1/README .md
debug:渲染模板chapter1/README.md
debug:对chapter1/README.md使用文件解析器markdown
debug:调用钩子页面
debug:索引页面chapter1/README.md
debug: 将解析文件chapter1/README.md写入chapter1index.html
debug: 处理chapter1/section1.md 50%
debug: 开始解析文件chapter1/section1.md
debug: 渲染模板chapter1/section1.md
debug: 使用Chapter1/section1.md的文件解析器markdown
debug:调用hook page
debug:索引页面chapter1/section1.md
debug:将解析文件chapter1/section1.md写入chapter1section1.html
debug:处理结束/README.md 75 %
debug:开始解析文件end/README.md
debug:渲染模板end/README.md
debug:使用文件解析器markdown来结束/README.md
debug:调用hook page
debug:索引页面end/README。 md
debug:将解析后的文件end/README.md写入endindex.html
debug:调用hook finish
debug:写入搜索索引
info:生成完成
正在启动服务器...
在http://localhost:4000上提供书籍