if (cb) cb.apply(this, arguments) ^ TypeError: cb.apply is not a function at /home/travis/.nvm/versions/node/v12.18.3/lib/node_modules/gitbook-cli/node_modules/npm/node_modules/graceful-fs/polyfills.js:287:18 at FSReqCallback.oncomplete (fs.js:169:5)
的情况,可以执行下面的命令解决
1 2 3
cd `npm root -g`/gitbook-cli/node_modules/npm/node_modules/ npm install graceful-fs@4.2.4 --save gitbook install