Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: cb.apply is not a function #115

Open
TT-usr opened this issue Oct 15, 2021 · 5 comments
Open

TypeError: cb.apply is not a function #115

TT-usr opened this issue Oct 15, 2021 · 5 comments

Comments

@TT-usr
Copy link

TT-usr commented Oct 15, 2021

➜  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
Copy link
Author

TT-usr commented Oct 15, 2021

node version is v16.8.0

@lamafab
Copy link

lamafab commented Oct 20, 2021

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
Copy link

lamafab commented Oct 20, 2021

See #110

@Katznicho
Copy link

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

@mahula
Copy link

mahula commented Oct 27, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants