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

info: load plugin mathjax ....ERROR #13

Open
mqshen opened this issue Sep 16, 2015 · 16 comments
Open

info: load plugin mathjax ....ERROR #13

mqshen opened this issue Sep 16, 2015 · 16 comments

Comments

@mqshen
Copy link

mqshen commented Sep 16, 2015

I already run gitbook install and the mathjax is in my node_modules.
When I run gitbook serve I got message like:

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

 info: loading book configuration....OK
 info: load plugin mathjax ....ERROR
 info: load plugin gitbook-plugin-highlight ....OK
 info: load plugin gitbook-plugin-livereload ....OK

 Error: Error loading plugins: mathjax. Run "gitbook install" to install plugins from NPM.

I print the error is

{ [Error: Cannot find module 'q'] code: 'MODULE_NOT_FOUND' }

How to fix it.
gitbook version: 2.4.0
OS: MacOS

@mqshen
Copy link
Author

mqshen commented Sep 16, 2015

I manual copy dependencies 'q' and 'crc' to node_modules/gitbook-plugin-mathjax/node_modules folder solve the problem.

@s-celles
Copy link

I'm facing a similar issue

$ gitbook build
info: loading book configuration....OK
info: load plugin gitbook-plugin-mathjax ....ERROR
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.
$ gitbook install
info: 1 plugins to install
info: No version specified, resolve plugin mathjax
info: install plugin mathjax from npm (gitbook-plugin-mathjax) with version 1.0.2
info: >> plugin mathjax installed with success

Done, without error

@dsoto
Copy link

dsoto commented Dec 9, 2015

same as above on OS X

@jckw
Copy link

jckw commented Dec 26, 2015

have this problem on OS X too.

@jtorreggiani
Copy link

Just came across this issue on OS X.

@wx-chevalier
Copy link

How to resolve it?

@princyparsana
Copy link

Update mathjax plugin in your book.json file to mathjax-beta

{
    "plugins": [
        "mathjax-beta"
    ],
    "pluginsConfig": {}
}

Next, install and build gitbook

gitbook install

gitbook build

@soulmachine
Copy link

@princyparsana gitbook install runs fine, but git build fails:

load plugin gitbook-plugin-mathjax-beta ....ERROR

@mstn
Copy link

mstn commented May 24, 2016

+1

@colliand
Copy link

colliand commented Aug 2, 2016

I'm encountering this same issue.... Mathjax is failing. Here is a screenshot of the build failure.

@faller
Copy link

faller commented Dec 7, 2016

+1

@avivajpeyi
Copy link

Getting same error as @soulmachine with GitBook 2.6.9

$ gitbook install
...
info: No version specified, resolve plugin mathjax-beta
info: install plugin mathjax-beta from npm (gitbook-plugin-mathjax-beta) with version 0.0.0
info: >> plugin mathjax-beta installed with success
$ gitbook build
info: loading book configuration....
...
info: load plugin gitbook-plugin-mathjax-beta ....ERROR
...
Error: Error loading plugins: gitbook-plugin-mathjax-beta. Run 'gitbook install' to install plugins from NPM.

@ARDivekar
Copy link

+1

@gzrjzcx
Copy link

gzrjzcx commented Oct 28, 2019

Any ideas?

@sachinsurfs
Copy link

We started noticing this issue since Sept 5th, the same date as [email protected] release.

Running npm install [email protected] before gitbook install fixed the issue for me.

@wevsmy
Copy link

wevsmy commented Feb 17, 2020

We started noticing this issue since Sept 5th, the same date as [email protected] release.

Running npm install [email protected] before gitbook install fixed the issue for me.

You're right, and I've had this problem.

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