gitbook serve命令找不到fontsettings.js

gitbook serve命令找不到fontsettings.js

问题描述

今天运行gitbook serve命令,老是报错:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$ gitbook serve
Live reload server started on port: 35729
Press CTRL+C to quit ...

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 1 pages
info: found 0 asset files

Error: ENOENT: no such file or directory, stat 'E:\Blog\MyGitBook\_book\gitbook\gitbook-plugin-fontsettings\fontsettings.js'

这个原来是一个Bug(Vesion:3.2.3)

解决方案

懒得写,见参考资料

参考资料

https://blog.csdn.net/prufeng/article/details/83301895
https://segmentfault.com/q/1010000009569245
https://www.cnblogs.com/wenhui92/p/9482629.html
https://blog.csdn.net/wltsysterm/article/details/104442439