Open muzhicaoming opened 4 years ago
the reason may be that it is not compatible for the newest version of the node.js
I got the same issue.
➜ gitbook gitbook init
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
➜ gitbook gitbook -V
CLI version: 2.3.2
GitBook version: 3.2.3
➜ gitbook node -v
v14.3.0
I got the same issue.
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
same issue with me too
me too
same issue lolz
me too
me too, found a useful link, BTW https://xmuli.tech/posts/d7327716/
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
me too
wangzhimengdeMacBook:books wangzhimeng$ gitbook init warn: no summary file in this book info: create README.md 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
@muzhicaoming, any progress made trying to fix this issue? Just curious.
me too , Try to lower the node.js version, it works fine in v12.22.12 version, no error message appears.
wangzhimengdeMacBook:books wangzhimeng$ gitbook init warn: no summary file in this book info: create README.md 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