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

About the environment install #58

Open
liusy58 opened this issue May 28, 2020 · 3 comments
Open

About the environment install #58

liusy58 opened this issue May 28, 2020 · 3 comments

Comments

@liusy58
Copy link

liusy58 commented May 28, 2020

Hey ,After I entered "make plugin"

Following errors occured:
Error loading version latest: SyntaxError: Unexpected token {
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object. (/gitbook/.gitbook/versions/3.2.3/node_modules/read-installed/node_modules/read-package-json/read-json.js:14:27)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)

TypeError: Cannot read property 'commands' of null

Could you plz tell me how to solve it?

@MikeMMS
Copy link

MikeMMS commented Aug 26, 2020

did you get a solution? I just come across the same issue now.

@MikeMMS
Copy link

MikeMMS commented Aug 26, 2020

I just figured out a workaround:

  1. install npm: sudo
    apt install npm
  2. install gitbook:
    npm install gitbook-cli -g
  3. gitbook init
  4. gitbook install
  5. gitbook serve --no-watch
    then you can open localhost: 4000 and see the book.
    If you want to make pdf or HTML file etc, you could use cat makefile to check the corresponding gitbook command

@liusy58
Copy link
Author

liusy58 commented Aug 27, 2020

thx, I'll have a try

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

2 participants