为情所困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 info infolled🜎: loading"
info: 7 plugins info infolled🜎 : 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"
de: calling hook "init "
debug: copy assets from theme C:Usersliuyun2.gitbookversions3.2.2node_modulesgitbook-plugin-theme-default_assetswebsite
debug: copy resources from plugin C:Useriu
Error: ENOENT: no such file or directory, stat 'D:workspacegithubgitbook_bookgitbookgitbook-plugin-fontsettingswebsite.css',Error: ENOENT: no such file or directory, stat 'Dfonters.
GitBook version is 2.6.7
$ gitbook serve ./ --log=debug --debug
Live reload server started on port: 35729
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)
debug:刪除D:workspacegithubgitbook_bookgitbookfontsfontawesome (3/18)
debug:刪除D:workspacegithubgitbook_bookgitbookfontsfontawesome (3/18)
book:刪除D:workspacegithubgitbook_41818F127137303037 月。 bookgitbookfontsfontawesomefontawesome-webfont 。 fontawesome-webfont. woff (8/18)
偵錯:刪除D:workspacegithubgitbook_bookgitbookfontsfontawesomef ontawesome-webfont.woff2 (9/18)
book_bookgitbookfontsfontawesomef ontawesome-webfont.woff2 (9/18)
book_bookgitbookfontsfontawesomef ontawesome-webfont.woff2 (9/18)
book_bookgitbookfontsfontawesomef ontawesome-webfont.woff2 (9/18)
book_bookgitbookfontsfontawesomef ontawesome-webfont.woff2 (9/18)
book:刪除D:workspacegithubgitbook_bookgitbookgitbook-plugin-fontsfontterspaces:10/1spacegithubgit fontsettings 。 )
調試:刪除D:workspacegithubgitbook_bookgitbookimagesapple-touch-icon-precomposed-152.png (15/18)
debug: 刪除D:workspacegithubgitbook_bookgitbookimagesfavicon.ico (16/18):17/185 刪除)
debug: 刪除D:workspacegithubgitbook_bookgitbooktheme.js (18/18)
info: OK
debug: 呼叫hook config
debug: 傳輸資料夾 chapter1/
debug: 傳輸資料夾
debug: 傳輸資料夾 chapter1/
debug: 傳輸資料夾
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的檔案解析器markdown
debug:呼叫hook page
debug:索引頁面chapter1/section1.md
debug:將解析檔案chapter1/section1.md寫入chapter1ssection1.html
debug:處理結束/READMEME .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上提供書籍