Skip to content

Instantly share code, notes, and snippets.

View tankywoo's full-sized avatar

Tanky Woo tankywoo

View GitHub Profile
/*
*
* Mongo-Hacker
* MongoDB Shell Enhancements for Hackers
*
* Tyler J. Brock - 2013
*
* http://tylerbrock.github.com/mongo-hacker
*
*/
@tankywoo
tankywoo / polyfills.js.patch
Created November 25, 2020 03:06
Fix gitbook-cli graceful-fs/polyfills.js cb.apply is not a function problem
As gitbook-cli is no longer maintained, there is a bug for its required library.
> /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
For MacOS, the patch file is:
/usr/local/lib/node_modules/gitbook-cli/node_modules/npm/node_modules/graceful-fs/polyfills.js
ref:
- https://stackoverflow.com/a/64211387/1276501