[root@localhost ~]# gitbook serve --port=80 Live reload server started on port: 35729 Press CTRL+C to quit ... FileNotFoundError: No "README" file (or is ignored)
解决办法:
原因是你没有进入到gitbook的安装目录。或者说你的环境变量没有设置好。
[root@localhost node]# gitbook serve --port=80 Live reload server started on port: 35729 Press CTRL+C to quit ... info: 16 plugins are installed info: 19 explicitly listed info: loading plugin "livereload"... OK info: loading plugin "Highlight"... OK info: loading plugin "search-pro"... OK info: loading plugin "lunr"... OK info: loading plugin "fontsettings"... OK info: loading plugin "back-to-top-button"... OK info: loading plugin "chapter-fold"... OK info: loading plugin "expandable-chapters-small"... OK info: loading plugin "code"... OK info: loading plugin "copy-code-button"... OK info: loading plugin "splitter"... OK info: loading plugin "tbfed-pagefooter"... OK info: loading plugin "popup"... OK info: loading plugin "theme-default"... OK info: found 6 pages info: found 165 asset files warn: "options" property is deprecated, use config.get(key) instead info: >> generation finished with success in 6.5s ! Starting server ... Serving book on http://localhost:80