Skip to content
This repository has been archived by the owner on Nov 24, 2020. It is now read-only.

Troubles with Mac Os #11

Open
vhuber opened this issue Aug 6, 2015 · 6 comments
Open

Troubles with Mac Os #11

vhuber opened this issue Aug 6, 2015 · 6 comments

Comments

@vhuber
Copy link

vhuber commented Aug 6, 2015

I do not success on installing this plugin on my mac.
My book compile well on gitbook and on an ubuntu.
I have followed this tuto, with nmp installed thanks to brew.

vhuber@host% gitbook install
info: 8 plugins to install
info: No version specified, resolve plugin anchors
info: install plugin anchors from npm (gitbook-plugin-anchors) with version 0.4.0
[email protected] node_modules/gitbook-plugin-anchors
├── [email protected]
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
info: >> plugin anchors installed with success
info: No version specified, resolve plugin include-highlight
info: install plugin include-highlight from npm (gitbook-plugin-include-highlight) with version 0.1.0
[email protected] node_modules/gitbook-plugin-include-highlight
├── [email protected]
├── [email protected]
└── [email protected]
info: >> plugin include-highlight installed with success
info: No version specified, resolve plugin mathjax
info: install plugin mathjax from npm (gitbook-plugin-mathjax) with version 1.0.0
child_process.js:1162
    throw errnoException(err, 'spawn');
          ^
Error: spawn E2BIG
    at exports._errnoException (util.js:746:11)
    at ChildProcess.spawn (child_process.js:1162:11)
    at exports.spawn (child_process.js:995:9)
    at spawn (/Users/vhuber/.gitbook/versions/2.2.0/node_modules/npm/lib/utils/spawn.js:7:13)
    at runCmd_ (/Users/vhuber/.gitbook/versions/2.2.0/node_modules/npm/lib/utils/lifecycle.js:207:14)
    at runCmd (/Users/vhuber/.gitbook/versions/2.2.0/node_modules/npm/lib/utils/lifecycle.js:172:5)
    at runPackageLifecycle (/Users/vhuber/.gitbook/versions/2.2.0/node_modules/npm/lib/utils/lifecycle.js:134:3)
    at Array.<anonymous> (/Users/vhuber/.gitbook/versions/2.2.0/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8)
    at LOOP (/Users/vhuber/.gitbook/versions/2.2.0/node_modules/npm/node_modules/slide/lib/chain.js:15:14)
    at chain (/Users/vhuber/.gitbook/versions/2.2.0/node_modules/npm/node_modules/slide/lib/chain.js:20:5)

and my book.json

{
    "gitbook": "2.2.0",
    "plugins": ["anchors","include-highlight","mathjax","ga","richquotes","toc","expandable-chapters","unicodecss"],
    "pluginsConfig": {
        "ga": {
            "token": "UA-65761593-1"
        },
        "richquotes" : {
            "todos" : true,
            "fixme" : true
        }
    },
    "links": {
        "sidebar": {
            "Feel++": "http://www.feelpp.org/",
            "GitHub": "http://www.github.com/feelpp/feelpp"
        }
    }
}
@benanders
Copy link

Was anyone able to resolve this issue? A quick fix or hack or something? I'm getting this error and I need to use something to typeset math formula in Gitbook, and so far this plugin fails to install.

@lightscalar
Copy link

I'm having the same issue. Cannot install MathJax on MAC OSX.

@benanders
Copy link

I found if you use the beta version then it works fine on OSX. You use the term mathjax-beta instead of mathjax in your book.json. Not sure why the beta version works and the main release doesn't.

@soulmachine
Copy link

@GravityScore your way works only in gitbook install stage, when I run gitbook build it will still throw out an error:

Error: Error loading plugins: gitbook-plugin-mathjax-beta.

@mstn
Copy link

mstn commented May 24, 2016

+1

@GuGuss
Copy link

GuGuss commented Feb 14, 2017

Related to GitbookIO/gitbook-cli#11

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants