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

TypeError: cb.apply is not a function

Open TT-usr opened this issue 3 years ago • 5 comments

➜  the-swift-programming-language-in-chinese git:(gh-pages) gitbook build
Installing GitBook 3.2.3
(node:12870) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
(Use `node --trace-deprecation ...` to show where the warning was created)
  SOLINK_MODULE(target) Release/.node
  CXX(target) Release/obj.target/fse/fsevents.o
/opt/homebrew/lib/node_modules/gitbook-cli/node_modules/npm/node_modules/graceful-fs/polyfills.js:287
      if (cb) cb.apply(this, arguments)
                 ^

TypeError: cb.apply is not a function
    at /opt/homebrew/lib/node_modules/gitbook-cli/node_modules/npm/node_modules/graceful-fs/polyfills.js:287:18
    at FSReqCallback.oncomplete (node:fs:199:5)

TT-usr avatar Oct 15 '21 07:10 TT-usr

node version is v16.8.0

TT-usr avatar Oct 15 '21 07:10 TT-usr

Stackoverflow thread regarding this: https://stackoverflow.com/questions/64211386/gitbook-cli-install-error-typeerror-cb-apply-is-not-a-function-inside-graceful

Seems to simply migrate the issue, though. gitbook no longer prints errors, but the commands don't do anything...

lamafab avatar Oct 20 '21 22:10 lamafab

See #110

lamafab avatar Oct 20 '21 22:10 lamafab

I am facing the same error how did you guys resolve the error

Katznicho avatar Oct 15 '23 10:10 Katznicho

This problem still exists. Any workaround or solutions instead of usin NodeJS <=12.18.2?

mahula avatar Oct 27 '23 14:10 mahula