Typeerror occurred during gitbook installation: cb.apply is not a function

Typeerror occurred during gitbook installation: cb.apply is not a function

Such as the title. An error is reported during the installation of gitbook, as shown in the figure below<

solution:
find the file
C: users: Your Name: appdata: roaming: NPM: node_ modules\gitbook-cli\node_ modules\npm\node_ In the following location:

the

 fs.stat = statFix(fs.stat)
 fs.fstat = statFix(fs.fstat)
 fs.lstat = statFix(fs.lstat)

Three lines of code can be commented out.

finish


Read More: