Cannot find module 'internal/util/types
找到
C:\Users\{User}\.gitbook
找到并删除此文件夹
删除后执行命令
# npm uninstall -g gitbook
# npm uninstall -g gitbook-cli
--- 清除npm缓存
# npm cache clean -f
需要node环境 ➡️ Linux或Win下安装node和npm 需要Git环境 ➡️ https://cloud.tencent.com/developer/article/1329812
# npm install gitbook -g
# npm install -g gitbook-cli
--- 如果没有安装gitbook,此命令会默认同时安装 GitBook
# gitbook -V
--- 列出本地所有的gitbook版本
# gitbook ls
gitbook -V
查看版本号gitbook init
初始化gitbook serve
预览gitbook build
生成gitbook build --gitbook=2.6.7
生成时指定gitbook的版本, 本地没有会先下载gitbook uninstall 2.6.7
卸载指定版本号的gitbookgitbook fetch [version]
获取版本下载并安装<版本>gitbook --help
显示帮助文档gitbook ls-remote
列出NPM上的可用版本:image.png
Everything is ok. But you have to do by yourself.