cocos2d / cocos2d-x-docs

documentation of cocos2d-x
102 stars 65 forks source link

I can't run gitbook serve inside en directory #298

Open Joilnen opened 3 years ago

Joilnen commented 3 years ago

Someone know how to fix this ?

$ gitbook serve Live reload server started on port: 35729 Press CTRL+C to quit ...

/usr/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/lib/node_modules/gitbook-cli/node_modules/npm/node_modules/graceful-fs/polyfills.js:287:18 at FSReqCallback.oncomplete (node:fs:200:5)

slackmoehrle commented 3 years ago

I’m experiencing this as well. I don’t know if a fix yet.

Joilnen commented 3 years ago

after to try this, changed the issue https://stackoverflow.com/questions/64211386/gitbook-cli-install-error-typeerror-cb-apply-is-not-a-function-inside-graceful

node:internal/streams/readable:652 if (state.pipes.length === 1) { ^

TypeError: Cannot read property 'pipes' of undefined