【问题标题】:when gitbook init there are error Error loading version latest当 gitbook init 有错误 Error loading version latest
【发布时间】:2018-03-31 17:22:41
【问题描述】:

当我按照this 的说明进行操作时,一步一步来

  • mac 操作系统 10.13
  • nodejs v8.7.0
  • npm 5.5.1
  • CLI 版本:2.3.1
  • GitBook 版本:3.2.3

终于得到这个“gitbook init”错误:

加载最新版本时出错:错误:找不到模块“扩展”
在 Function.Module._resolveFilename (module.js:527:15)
在 Function.Module._load (module.js:476:23)
在 Module.require (module.js:568:17)
在要求 (internal/module.js:11:18)
在 目的。 (/Users/jinlei/.gitbook/versions/3.2.3/lib/index.js:1:76)
在 Module._compile (module.js:624:30)
在 Object.Module._extensions..js (module.js:635:10)
在 Module.load (module.js:545:32)
at tryModuleLoad (module.js:508:12)
at Function.Module._load (module.js:500:3)

类型错误:不能 读取 null 的属性“命令”

Screenshot of the error

如何解决这个问题?

【问题讨论】:

    标签: node.js npm gitbook


    【解决方案1】:

    尝试使用对我有用的 LTS 版本的 node 和 npm(分别为 6.11.4 和 3.10.10)。

    【讨论】:

      猜你喜欢
      • 2017-04-10
      • 2020-08-15
      • 2017-02-06
      • 1970-01-01
      • 2020-04-20
      • 2022-11-03
      • 2018-06-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多