GitbookIO / gitbook-cli

GitBook's command line interface
714 stars 212 forks source link

TypeError: cb.apply is not a function #115

Open TT-usr opened 3 years ago

TT-usr commented 3 years ago
➜  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 commented 3 years ago

node version is v16.8.0

lamafab commented 3 years ago

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 commented 3 years ago

See #110

Katznicho commented 1 year ago

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

mahula commented 1 year ago

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