gitbook-cli icon indicating copy to clipboard operation
gitbook-cli copied to clipboard

TypeError [ERR_INVALID_ARG_TYPE] when execute gitbook init

Open muzhicaoming opened this issue 5 years ago • 11 comments

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 avatar May 01 '20 08:05 muzhicaoming

the reason may be that it is not compatible for the newest version of the node.js

muzhicaoming avatar May 01 '20 08:05 muzhicaoming

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

Fanlu91 avatar Jun 02 '20 06:06 Fanlu91

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

vvguoliang avatar Jan 08 '21 01:01 vvguoliang

same issue with me too

zumdar avatar Feb 18 '21 18:02 zumdar

me too

danvinhe avatar Apr 08 '21 07:04 danvinhe

same issue lolz

emredc1337 avatar Apr 18 '21 09:04 emredc1337

me too

zixun avatar Apr 21 '21 07:04 zixun

me too, found a useful link, BTW https://xmuli.tech/posts/d7327716/

BH1SCW avatar May 06 '21 06:05 BH1SCW

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

jhfnetboy avatar Mar 11 '22 07:03 jhfnetboy

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

Question

@muzhicaoming, any progress made trying to fix this issue? Just curious.

ghost avatar May 27 '22 00:05 ghost

me too , Try to lower the node.js version, it works fine in v12.22.12 version, no error message appears.

Kry1702 avatar Jan 28 '23 10:01 Kry1702