Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError [ERR_INVALID_ARG_TYPE] when execute gitbook init #108

Open
muzhicaoming opened this issue May 1, 2020 · 11 comments
Open

TypeError [ERR_INVALID_ARG_TYPE] when execute gitbook init #108

muzhicaoming opened this issue May 1, 2020 · 11 comments

Comments

@muzhicaoming
Copy link

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
Copy link
Author

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

@Fanlu91
Copy link

Fanlu91 commented Jun 2, 2020

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

@vvguoliang
Copy link

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

@zumdar
Copy link

zumdar commented Feb 18, 2021

same issue with me too

@danvinhe
Copy link

danvinhe commented Apr 8, 2021

me too

@emredc1337
Copy link

same issue lolz

@zixun
Copy link

zixun commented Apr 21, 2021

me too

@BH1SCW
Copy link

BH1SCW commented May 6, 2021

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

@jhfnetboy
Copy link

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

@ghost
Copy link

ghost commented May 27, 2022

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.

@Kry1702
Copy link

Kry1702 commented Jan 28, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants