GitBook init error

created at 10-28-2021 views: 1

need

When using gitBook-cli, the initialization directly reports an error

TypeError: cb.apply is not a function

process

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

commented lines

run gitbook init
Check whether it is successful gitbook -V
Start gitbook build

expand

Two files are needed on the interface when gitbook build, README.md SUMMARY.md
summary is a directory file, both are indispensable

created at:10-28-2021
edited at: 10-28-2021: