When using gitBook-cli, the initialization directly reports an error
TypeError: cb.apply is not a function
Solution, npm downgrade, node 10.14.1
can be used normally
Modify the global gitBook built-in function
vim /usr/local/lib/node_modules/gitbook-cli/node_modules/npm/node_modules/graceful-fs/polyfills.js
comment the 62,63,64 lines
run gitbook init
Check whether it is successful gitbook -V
Start gitbook build
Two files are needed on the interface when gitbook build, README.md SUMMARY.md
summary is a directory file, both are indispensable