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

[BLOCKING] Mathjax failed to load in Gitbook v2.6.7 #22

Open
colingonglin opened this issue Jan 9, 2017 · 1 comment
Open

[BLOCKING] Mathjax failed to load in Gitbook v2.6.7 #22

colingonglin opened this issue Jan 9, 2017 · 1 comment

Comments

@colingonglin
Copy link

This error occured from 2016/12/8 and it has been ONE MONTH. My development team depends on my requirement specification book to work. And this issue affects our work a lot.

Can you help solve it ASAP? Thanks.

Here is the error msg:

Building Site, will upload
info: loading book configuration....OK 
info: load plugin gitbook-plugin-mathjax ....ERROR
info: load plugin gitbook-plugin-mermaid ....OK 
……
Error: Error loading plugins: gitbook-plugin-mathjax. Run 'gitbook install' to install plugins from NPM.

Here is the full message:

Downloading source
Extracting source
GitBook version is 2.6.7 
Tweaking book.json
Installing plugins
info: 4 plugins to install 
info: No version specified, resolve plugin mathjax 
info: install plugin mathjax from npm (gitbook-plugin-mathjax) with version 1.0.2 
make: Entering directory `/tmp/book/node_modules/gitbook-plugin-mathjax/node_modules/MathJax-node/node_modules/jsdom/node_modules/contextify/build'
  CXX(target) Release/obj.target/contextify/src/contextify.o
  SOLINK_MODULE(target) Release/obj.target/contextify.node
  SOLINK_MODULE(target) Release/obj.target/contextify.node: Finished
  COPY Release/contextify.node
make: Leaving directory `/tmp/book/node_modules/gitbook-plugin-mathjax/node_modules/MathJax-node/node_modules/jsdom/node_modules/contextify/build'
gitbook-plugin-mathjax@1.0.2 node_modules/gitbook-plugin-mathjax
├── crc@3.2.1
├── q@1.1.2
└── MathJax-node@0.3.0 (yargs@6.6.0, jsdom@3.1.1, speech-rule-engine@1.2.0, MathJax@2.5.1-mjnode)
info: >> plugin mathjax installed with success 
info: No version specified, resolve plugin mermaid 
info: install plugin mermaid from npm (gitbook-plugin-mermaid) with version 0.0.9 
make: Entering directory `/tmp/book/node_modules/gitbook-plugin-mermaid/node_modules/phantom/node_modules/dnode/node_modules/weak/build'
  CXX(target) Release/obj.target/weakref/src/weakref.o
  SOLINK_MODULE(target) Release/obj.target/weakref.node
  SOLINK_MODULE(target) Release/obj.target/weakref.node: Finished
  COPY Release/weakref.node
make: Leaving directory `/tmp/book/node_modules/gitbook-plugin-mermaid/node_modules/phantom/node_modules/dnode/node_modules/weak/build'
PhantomJS not found on PATH
Downloading https://github.com/Medium/phantomjs/releases/download/v1.9.19/phantomjs-1.9.8-linux-x86_64.tar.bz2
Saving to /tmp/book/node_modules/gitbook-plugin-mermaid/node_modules/phantomjs/phantomjs/phantomjs-1.9.8-linux-x86_64.tar.bz2
Receiving...

Received 12854K total.
Extracting tar contents (via spawned process)
Removing /tmp/book/node_modules/gitbook-plugin-mermaid/node_modules/phantomjs/lib/phantom
Copying extracted folder /tmp/book/node_modules/gitbook-plugin-mermaid/node_modules/phantomjs/phantomjs/phantomjs-1.9.8-linux-x86_64.tar.bz2-extract-1483354316604/phantomjs-1.9.8-linux-x86_64 -> /tmp/book/node_modules/gitbook-plugin-mermaid/node_modules/phantomjs/lib/phantom
Writing location.js file
Done. Phantomjs binary available at /tmp/book/node_modules/gitbook-plugin-mermaid/node_modules/phantomjs/lib/phantom/bin/phantomjs
gitbook-plugin-mermaid@0.0.9 node_modules/gitbook-plugin-mermaid
├── q@1.1.2
├── phantom@0.8.4 (win-spawn@2.0.0, traverse@0.6.6, shoe@0.0.15, dnode@1.2.2)
└── phantomjs@1.9.20 (progress@1.1.8, which@1.2.12, kew@0.7.0, hasha@2.2.0, request-progress@2.0.1, extract-zip@1.5.0, fs-extra@0.26.7, request@2.67.0)
info: >> plugin mermaid installed with success 
info: No version specified, resolve plugin comment 
info: install plugin comment from npm (gitbook-plugin-comment) with version 0.2.1 
gitbook-plugin-comment@0.2.1 node_modules/gitbook-plugin-comment
info: >> plugin comment installed with success 
info: No version specified, resolve plugin autocover 
info: install plugin autocover from npm (gitbook-plugin-autocover) with version 1.2.1 
info: >> plugin autocover installed with success 

Done, without error
Building Site, will upload
info: loading book configuration....OK 
info: load plugin gitbook-plugin-mathjax ....ERROR
info: load plugin gitbook-plugin-mermaid ....OK 
info: load plugin gitbook-plugin-comment ....OK 
info: load plugin gitbook-plugin-autocover ....OK 
info: load plugin gitbook-plugin-highlight ....OK 
info: load plugin gitbook-plugin-search ....OK 
info: load plugin gitbook-plugin-sharing ....OK 
info: load plugin gitbook-plugin-fontsettings ....OK 

Error: Error loading plugins: gitbook-plugin-mathjax. Run 'gitbook install' to install plugins from NPM.
@fairleehu
Copy link

ok,i find a way,use the katex,also with v3 anfd v2.6.7

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

2 participants