• 首页
  • 狐文
  • 狐图
  • About
狐窝
OvO
  1. 首页
  2. 未分类
  3. 正文

GitBook 编译,生成pdf报错

2017年08月08日 95点热度 0人点赞 0条评论

2016(11-14) from---http://www.xttblog.com/?p=951

最近在使用 GitBook 生成静态网页和pdf文件时,百度,谷歌了很久也没有类似的解决方案,最近发现是版本问题,我把我的相关经验分享给大家!

在执行 gitbook build ,gitbook serve,gitbook pdf等命令均保持。报错了错误提示内容如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
info: 10 plugins are installed
info: 9 explicitly listed
info: loading plugin "baidu"... OK
info: loading plugin "donate"... OK
info: loading plugin "sitemap"... 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 24 pages
info: found 2 asset files
warn: "options" property is deprecated, use config.get(key) instead
warn: "options.generator" property is deprecated, use "output.name" instead
error: error while generating page "README.md":
TypeError: this.contentPath is not a function

当然也有些网友的报错内容如下:

1
2
3
4
warn: "options" property is deprecated, use config.get(key) instead
warn: "page.progress" property is deprecated
warn: "sections" property is deprecated, use page.content instead
TypeError: Path must be a string. Received undefined

这种问题的原因是,gitbook的版本太低。大家执行 gitbook update 命令进行升级,升级到3.2.2版本即可。

也有网友反映,报一下的错:

1
Error: Couldn't locate plugins "baidu, donate", Run 'gitbook install' to install plugins from registry.

这是提示插件没有安装的错误。大家执行 gitbook install 命令完成安装即可。

标签: 暂无
最后更新:2017年08月08日

OvO

狐狸

点赞
< 上一篇
下一篇 >
最新 热点 随机
最新 热点 随机
钛备份或小米系统备份功能备份出来的APK无法正常还原 BBR安装启用 安装docker mitmproxy 调试方法 Android SDK 版本选择 Perdition Mail代理服务器配置 HAProxy SSL代理 Openssl 中间人SSL代理 Stunnel SSL to SSL代理 NGINX反代IMAP配置 各种设备User Agent Torrent下载工具推荐 用 rar2john+hashcat 破解 RAR 文件密码 2020最好的Linux发行版 关闭新版chrome工具栏上拼图图标 Office 下载、安装、激活,有它就够了! Android 非官方的发行版 openwrt添加autoconf-archive
Motrix 添加链接提示 Failed to fetch 软路由系统推荐 Oracle 12c中添加scott用户的方法 Word VBA批量格式转换:docx转pdf、doc、rtf、txt以及反向转换 推荐 15 款很棒的文本编辑器 bin/ld: cannot find -liconv 报错 Openwrt 编译 在Centos7上安装Htop ORA-01652:无法通过128(在表空间temp中)扩展temp段 解决方法 知乎神回复 office2016激活备份方法 KMS激活专用:所有Windows版本的GVLK密钥对照表 Jetbrains 在 Linux 下字体差调整 Ubuntu Server命令行下中文乱码的解决方法 IntelliJ IDEA 源值1.5已过时,将在未来所有版本中删除 英特尔服务器主板24针前面板接口说明 【PS色彩】最舒服的色彩搭配 使用Python做验证码识别 Debian / Ubuntu 镜像源自动快速获取+测速+修改工具: apt-smart
标签聚合
网卡 blog 镜像 安装 chromium ssl 下载 git chrome linux 路由 yum https e docker 密码

COPYRIGHT © 2020 狐窝. ALL RIGHTS RESERVED.

THEME KRATOS MADE BY VTROIS