mac gitbook 错误”cb.apply is not a function“

打开这个js文件:
open /usr/local/lib/node_modules/gitbook-cli/node_modules/npm/node_modules/graceful-fs/polyfills.js
把62-64行注释掉

  // fs.stat = statFix(fs.stat)
  // fs.fstat = statFix(fs.fstat)
  // fs.lstat = statFix(fs.lstat)

你可能感兴趣的:(mac gitbook 错误”cb.apply is not a function“)