Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gitbook init Error: TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be

Tags:

gitbook

node: v14.0.0

CLI version: 2.3.2

GitBook version: 3.2.3

Windows10

When execute gitbook init in an empty folder, it pops up:

$ 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

And there is no "SUMMARY.md" created... How could it be fixed?Thanks!

like image 802
Sentinel_15 Avatar asked May 01 '20 07:05

Sentinel_15


1 Answers

I have the same problem just as you. Switch back from latest node version to 12.18.1 LTS.

And everything gonna be ok.

like image 184
Hector Jiang Avatar answered Dec 04 '22 05:12

Hector Jiang