gitbook因为nodejs版本不匹配导致安装报错

分享到:

如果nodejs使用的不是10.x版本,就会报错

1Installing GitBook 3.2.3
2/usr/local/lib/node_modules/gitbook-cli/node_modules/npm/node_modules/graceful-fs/polyfills.js:287
3      if (cb) cb.apply(this, arguments)
4                 ^
5
6TypeError: cb.apply is not a function
7    at /usr/local/lib/node_modules/gitbook-cli/node_modules/npm/node_modules/graceful-fs/polyfills.js:287:18
8    at FSReqCallback.oncomplete (fs.js:177:5)

参考: