-
Notifications
You must be signed in to change notification settings - Fork 212
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
Gitbook build stopped to work in node 12.18.3 #110
Comments
Yes, I have the same problem. My node version is |
I have the same problem. |
I believe the issue was resolved by isaacs/node-graceful-fs@168bdb8, but gitbook-cli has outdated dependencies which pull in versions of graceful-fs without the fix. |
I have the same problem, too. please help. node version is v14.6.0. |
In light of |
@greyltc That sounds good. You can unify one person to fork and then maintain it through the open source community |
@rjbeers Thank you very much. You're right.
|
@greyltc I noticed a new fork -- greyltc@2b39017 . Thanks! Are you planning to publish your fork as an npm package? Let me know if I can be any help. Our team depends on gitbook-cli, so I'd love to find a path forward. |
@zzaacchh The NPM dependancy system seems to be a real nightmare. Any help is welcome. |
Thanks, @greyltc . I'm planning to hire someone on upwork to help fork and repackage. Any chance you'd be up for pitching in on the cost for that? |
The stuff I use gitbook-cli for is free, open and, non-revenue-generating, so unfortunately I don't have much other than a little of my time to offer. And that's not so valuble here because I don't know shit about javascript! |
I was reached out by @zzaacchh. I’m happy to support this project for free! Forked. |
yeah it helps !!! my node version is v14.5.0 |
I ended up to use nvm to use nodejs 10 lts. I updated dependency of graceful-fs globally and locally but it won't help. |
I had the same issue but using different package. It was mentioned before that selective dependency resolution can help with that: "resolutions": {
"**/graceful-fs": "^4.2.4"
} I am installing my deps with |
upgrading to later versions causes a "TypeError: cb.apply is not a function" error to occur when running 'gitbook install`. relevant github issue: GitbookIO/gitbook-cli#110
I make my own fork, if you are interested, just use I also develop an github action for generate books, please refer to: https://github.com/gengjiawen/koajs-design-note. |
Still +1 |
I had same problem. My environment is :
try this : $ npm i -g gitbook-cli
|
It works for me :) Thanks 😋 @jinifor
|
It works for me too !!! Thanks @jinifor |
Workaround for me in node:v14.16.0 $ yarn global add gitbook-cli@2.2.0
$ gitbook fetch 3.2.3 |
My node version is |
Just replace the crashing file This works like a charm in Node.js v16.13.0. |
These are the detailed steps to fix the problem (temporary, just to execute Install
|
Great!! It works for me. |
#110 (comment) npm i -g gitbook-cli
cd /opt/homebrew/lib/node_modules/gitbook-cli
npm i graceful-fs@4.1.4 --save
cd /opt/homebrew/lib/node_modules/gitbook-cli/node_modules/npm
npm i graceful-fs@4.1.4 --save
cd {your gitbook directory}
gitbook init
gitbook serve |
thank you! it is working... |
that's helpful! I finally manage to install gitbook with node |
|
node -v 16.14.2 npm -v 8.5.0 cd C:\Users\admin\AppData\Roaming\npm\node_modules\gitbook-cli\node_modules\npm\node_modules Find the global installation directory for NPM: (prefix) prefix = "C:\Users\admin\AppData\Roaming\npm" ; "user" config from C:\Users\admin.npmrc registry = "https://registry.npm.taobao.org/" ; node bin location = C:\Program Files\nodejs\node.exe |
To anyone still having this issue, I have setup an devcontainer environment with gitbook configured and working fine. The gitbook fix is based on @jinifor contribution above #110 (comment) Hope it can help someone! |
I have the same problem.
#110 (comment) |
I use GitHub Actions script to build and deploy my gitbook-based books. This is the script. It works successfully in the last 3 years: https://github.com/SoftUni/Programming-Basics-Book-JS-EN/blob/master/.github/workflows/gitbook-deploy.yml |
It seems this project hasn't got any update since 2017, it's time to move on something else, some alternatives: |
I have the same problem, too. please help. node version is v18.14.0. |
This problem still exists. |
#110 (comment) this works on Node.js 22. |
it works for me, in Windows, node 10.8.1 |
Since the new version of node, when running
gitbook build
it fails with the following error:The command still works fine when using 12.18.2
The text was updated successfully, but these errors were encountered: