GitbookIO / gitbook-cli

GitBook's command line interface
717 stars 212 forks source link

gitbook init error #126

Closed reatang closed 1 year ago

reatang commented 1 year ago

os: macos 12.2 nodejs: v18.8.0 npm: 9.2.0 gitbook: 3.2.3

gitbook init --log=debug --debug
warn: no summary file in this book
info: create SUMMARY.md

TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Promise
TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Promise
    at writeFile (node:fs:2168:5)
    at go$writeFile (/opt/homebrew/lib/node_modules/gitbook-cli/node_modules/npmi/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:94:14)
    at writeFile (/opt/homebrew/lib/node_modules/gitbook-cli/node_modules/npmi/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:91:12)
    at go$writeFile (/opt/homebrew/lib/node_modules/gitbook-cli/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:94:14)
    at writeFile (/opt/homebrew/lib/node_modules/gitbook-cli/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:91:12)
    at go$writeFile (/Users/reatang/.gitbook/versions/3.2.3/node_modules/graceful-fs/graceful-fs.js:94:14)
    at writeFile (/Users/reatang/.gitbook/versions/3.2.3/node_modules/graceful-fs/graceful-fs.js:91:12)
    at Promise.apply (/Users/reatang/.gitbook/versions/3.2.3/node_modules/q/q.js:1165:26)
    at Promise.promise.promiseDispatch (/Users/reatang/.gitbook/versions/3.2.3/node_modules/q/q.js:788:41)
    at /Users/reatang/.gitbook/versions/3.2.3/node_modules/q/q.js:1391:14