gitbook-cli icon indicating copy to clipboard operation
gitbook-cli copied to clipboard

TypeError: Cannot read property 'commands' of null

Open kkmike999 opened this issue 7 years ago • 5 comments

# npm -v
5.6.0
# node --version
v9.5.0

# gitbook --version
CLI version: 2.3.2
GitBook version: 3.2.3

When i exec gitbook init then:

Error loading version latest: /root/.gitbook/versions/3.2.3/node_modules/gitbook-markdown/node_modules/lodash/lodash.js:8018
    /**
    ^^^

SyntaxError: Invalid or unexpected token
    at new Script (vm.js:51:7)
    at createScript (vm.js:138:10)
    at Object.runInThisContext (vm.js:199:10)
    at Module._compile (module.js:624:28)
    at Object.Module._extensions..js (module.js:671:10)
    at Module.load (module.js:573:32)
    at tryModuleLoad (module.js:513:12)
    at Function.Module._load (module.js:505:3)
    at Module.require (module.js:604:17)
    at require (internal/module.js:11:18)

TypeError: Cannot read property 'commands' of null

kkmike999 avatar Feb 19 '18 14:02 kkmike999

same here

mwolski89 avatar Dec 17 '19 09:12 mwolski89

same here

annu12340 avatar Aug 18 '20 13:08 annu12340

same here

dorbodwolf avatar Sep 05 '20 15:09 dorbodwolf

SAME HER

flaced avatar Apr 24 '21 18:04 flaced

I have the same issue, update nodejs to 12.12.0 solved my issue.

xianglinhe avatar Oct 22 '22 04:10 xianglinhe