-
-
Notifications
You must be signed in to change notification settings - Fork 148
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 #192
Comments
Hi! I'm having the same issue, @buxoman did you find a solution? |
@yberstad I have no experience on javascript and just want to write markdown using gitbook. |
Your install of |
I fixed the issue by adding this to package.json (after devDependencies: {})
|
It looks like the Since the graceful-fs bug was fixed nearly 4 years ago and does not require a semver-major bump nothing further can be done by us. I don't know if alternatives to |
not working https://travis-ci.org/github/willin/codewars.js.cool/jobs/715362713#L204 |
Yeah. That also doesn't work for me. |
If anyone has a working solution for this for the abandoned gitbook-cli, please let us know at GitbookIO/gitbook-cli#110 |
The main reason is that fs.stat support bigint since node v10.5.0: But before v10.5.0, fs.js - Loop : After v10.5.0, fs.js - Loop : The simplest method is limit node version, If your can change node version:
The once and for all method is to send a patch package for graceful-fs "stat" to support option for second param |
the "engines" patch does not work with the RN community android build, the error remains. Neither the above "resolutions" patch. is there a way to validate the setting has been indeed applied? (as it was said above, "IF you can change node version") |
% uname -a
Darwin xpace7 19.5.0 Darwin Kernel Version 19.5.0: Tue May 26 20:41:44 PDT 2020; root:xnu-6153.121.2~2/RELEASE_X86_64 x86_64
% npm install graceful-fs -g
added 1 package in 0.252s
% gitbook -V
CLI version: 2.3.2
Installing GitBook 3.2.3
/usr/local/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 /usr/local/lib/node_modules/gitbook-cli/node_modules/npm/node_modules/graceful-fs/polyfills.js:287:18
at FSReqCallback.oncomplete (fs.js:177:5)
The text was updated successfully, but these errors were encountered: