2017-10-19 74 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),這對我很有用。