前端 - gitbook serve命令提示找不到wensite.css和website.js

查看:492
本文介绍了前端 - gitbook serve命令提示找不到wensite.css和website.js的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

错误指示的目录下的文件是空的:

求大神解释一下

解决方案

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: add block 'html'
debug: add block 'code'
info: loading book configuration....OK
info: load plugin gitbook-plugin-highlight ....OK
debug: add block 'code'
info: load plugin gitbook-plugin-search ....OK
info: load plugin gitbook-plugin-sharing ....OK
info: load plugin gitbook-plugin-fontsettings ....OK
info: load plugin gitbook-plugin-livereload ....OK
info: >> 5 plugins loaded
debug: normalize plugins list
debug: start parsing languages index: LANGS.md
debug: start parsing readme: README.md
debug: readme located at README.md
debug: start parsing summary: SUMMARY.md
debug: summary located at SUMMARY.md
debug: start parsing glossary: GLOSSARY.md
info: start generation with website generator
info: clean website generator
debug: remove D:workspacegithubgitbook_bookgitbookfonts (2/18)
debug: remove D:workspacegithubgitbook_bookgitbookfontsfontawesome (3/18)
debug: remove D:workspacegithubgitbook_bookgitbookfontsfontawesomeFontAwesome.otf (4/18)
debug: remove D:workspacegithubgitbook_bookgitbookfontsfontawesomefontawesome-webfont.eot (5/18)
debug: remove D:workspacegithubgitbook_bookgitbookfontsfontawesomefontawesome-webfont.svg (6/18)
debug: remove D:workspacegithubgitbook_bookgitbookfontsfontawesomefontawesome-webfont.ttf (7/18)
debug: remove D:workspacegithubgitbook_bookgitbookfontsfontawesomefontawesome-webfont.woff (8/18)
debug: remove D:workspacegithubgitbook_bookgitbookfontsfontawesomefontawesome-webfont.woff2 (9/18)
debug: remove D:workspacegithubgitbook_bookgitbookgitbook-plugin-fontsettings (10/18)
debug: remove D:workspacegithubgitbook_bookgitbookgitbook-plugin-fontsettingsfontsettings.js (11/18)
debug: remove D:workspacegithubgitbook_bookgitbookgitbook-plugin-fontsettingswebsite.css (12/18)
debug: remove D:workspacegithubgitbook_bookgitbookgitbook.js (13/18)
debug: remove D:workspacegithubgitbook_bookgitbookimages (14/18)
debug: remove D:workspacegithubgitbook_bookgitbookimagesapple-touch-icon-precomposed-152.png (15/18)
debug: remove D:workspacegithubgitbook_bookgitbookimagesfavicon.ico (16/18)
debug: remove D:workspacegithubgitbook_bookgitbookstyle.css (17/18)
debug: remove D:workspacegithubgitbook_bookgitbooktheme.js (18/18)
info: OK
debug: call hook config
debug: transferring folder chapter1/
debug: transferring folder end/
debug: processing README.md 0%
debug: start parsing file README.md
debug: render template README.md
debug: use file parser markdown for README.md
debug: call hook page
debug: index page README.md
debug: write parsed file README.md to index.html
debug: processing chapter1/README.md 25%
debug: start parsing file chapter1/README.md
debug: render template chapter1/README.md
debug: use file parser markdown for chapter1/README.md
debug: call hook page
debug: index page chapter1/README.md
debug: write parsed file chapter1/README.md to chapter1index.html
debug: processing chapter1/section1.md 50%
debug: start parsing file chapter1/section1.md
debug: render template chapter1/section1.md
debug: use file parser markdown for chapter1/section1.md
debug: call hook page
debug: index page chapter1/section1.md
debug: write parsed file chapter1/section1.md to chapter1section1.html
debug: processing end/README.md 75%
debug: start parsing file end/README.md
debug: render template end/README.md
debug: use file parser markdown for end/README.md
debug: call hook page
debug: index page end/README.md
debug: write parsed file end/README.md to endindex.html
debug: call hook finish
debug: write search index
info: generation is finished

Starting server ...
Serving book on http://localhost:4000

这篇关于前端 - gitbook serve命令提示找不到wensite.css和website.js的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆