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

Node 4.0 - Segmentation fault: 11 #12

Open
Cap32 opened this issue Sep 9, 2015 · 10 comments
Open

Node 4.0 - Segmentation fault: 11 #12

Cap32 opened this issue Sep 9, 2015 · 10 comments

Comments

@Cap32
Copy link

Cap32 commented Sep 9, 2015

Hello,

I just updated to Node 4.0. And I got Segmentation fault: 11 while I run gitbook serve or gitbook build.

And I have tried npm r -g gitbook-cli and then npm i -g gitbook-cli, and tried npm rebuild in my project, but still nothing works.

There was no error shown while I installing node modules.

@SamyPesse
Copy link
Member

What OS are you using?

I just tested by installing node v4.0 with nvm on OS X El Capitan, and everything is working fine (installation, serve, build, ...).

Samys-Mac-mini:books samypesse$ node -v
v4.0.0
Samys-Mac-mini:books samypesse$ npm -v
2.14.2
Samys-Mac-mini:books samypesse$ gitbook --version
0.3.6
Samys-Mac-mini:books samypesse$ which gitbook
/Users/samypesse/.nvm/versions/node/v4.0.0/bin/gitbook

GitBook unit tests are also all passing on Node v4.0.

@Cap32
Copy link
Author

Cap32 commented Sep 10, 2015

OS X Yosemite v10.10.5.

I installed node v4.0 with n.

image

@azu
Copy link

azu commented Sep 13, 2015

I have the same issue.

  • OS X Yosemite v10.10.5
  • Installed Node v4.0.0 with nodebrew
  • npm 2.14.2

Reproduce the issue on my project:

git clone https://github.com/azu/JavaScript-Plugin-Architecture
cd JavaScript-Plugin-Architecture
npm install
# gitbook install => Segmentation fault

@qimingweng
Copy link

I am seeing this issue as well, are there any updates?

@qimingweng
Copy link

What solved the problem for me was running the command gitbook versions:install, which I suppose is a little unintuitive as it is not mentioned in the README

@SamyPesse
Copy link
Member

We have unit tests on gitbook and gitbook-cli for Node 4, 4.1 and 4.2; and it's working :/

Are you using plugins ?

@qimingweng
Copy link

No plugins, and just one SUMMARY.md, I was just playing with the library, but doing gitbook versions:install does solve it; what is that function doing in the background? I had previously done npm install --save gitbook too.

@SamyPesse
Copy link
Member

What is the output of gitbook versions:print ?

@qimingweng
Copy link

@SamyPesse I think the problem was the the cli didn't install the version at first, I ran on a different machine and it seemed fine so I can't tell you the output of gitbook versions:print

@NicoleY77
Copy link

Having the same issue .

gitbook versions:print
GitBook version is 2.1.0

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

5 participants