2017-10-19 41 views
0

当我跟随this指引,一步一步当gitbook INIT有错误错误加载最新版本

  • MAC OS 10.13
  • 的NodeJS V8.7.0
  • NPM 5.5.1
  • CLI版本2.3.1
  • GitBook版本:3.2.3

菲娜LLY得到这个 “gitbook初始化” 错误:

Error loading version latest: Error: Cannot find module 'extend'
at Function.Module._resolveFilename (module.js:527:15)
at Function.Module._load (module.js:476:23)
at Module.require (module.js:568:17)
at require (internal/module.js:11:18)
at Object. (/Users/jinlei/.gitbook/versions/3.2.3/lib/index.js:1:76)
at Module._compile (module.js:624:30)
at Object.Module._extensions..js (module.js:635:10)
at Module.load (module.js:545:32)
at tryModuleLoad (module.js:508:12)
at Function.Module._load (module.js:500:3)

TypeError: Cannot read property 'commands' of null

Screenshot of the error

如何解决这个问题?

回答

0

尝试使用LTS版本的节点和npm(分别为6.11.4和3.10.10),这对我很有用。