运行gitbook init命令报错,错误信息如下:
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
问题原因:node.js版本过高
解决办法:卸载高版本node.js,重新安装稍低版本的node.js
我之前装的是16版本,降到12版本 就可以了
C:\book>node -v
v12.16.2
C:\book>gitbook init
warn: no summary file in this book
info: create README.md
info: create SUMMARY.md
info: initialization is finished