gitbook 运行 bug 报错

下载较新版本的 node.js 会导致 gitbook 运行报错,如果你也遇到了下面的报错,可以参考一下本章节的教程:

1 2 3 4 5 6 7 8 9 10 11
$ gitbook serve
Live reload server started on port: 35729
Press CTRL+C to quit ...

C:\Users\darren\AppData\Roaming\npm\node_modules\gitbook-cli\node_modules\npm\node_modules\graceful-fs\polyfills.js:287
      if (cb) cb.apply(this, arguments)
                 ^

TypeError: cb.apply is not a function
    at C:\Users\darren\AppData\Roaming\npm\node_modules\gitbook-cli\node_modules\npm\node_modules\graceful-fs\polyfills.js:287:18
    at FSReqCallback.oncomplete (fs.js:184:5)

报错截图

results matching ""

    No results matching ""