gitbook build 报错:TypeError: cb.apply is not a function

运行 gitbook build 后报错,初步判断是 node 版本升级导致

if (cb) cb.apply(this, arguments)
                 ^
TypeError: cb.apply is not a function

通过 nvm use 12 降低 node 环境后解决,类似报错也大多数由于 node 版本导致。

你可能感兴趣的:(开发经验)