^ TypeError: cb.apply is not a function at /usr/lib/node_modules/gitbook-cli/node_modules/npm/node_modules/graceful-fs/polyfills.js:287:18 查看gitbook版本依旧报错: 解决方案 经过查找发现是nodejs版本的问题,我当前版本为v16.13.0,降到v14.20也不行,最终测试通过版本为v10.24.1编译构建成功,解决问题...
针对您遇到的 TypeError: cb.apply is not a function 错误,我们可以按照您提供的提示逐步分析和解决问题。以下是详细的解答,包括可能的原因和解决方案: 1. 确认cb对象的类型 首先,您需要确认 cb 对象的类型。在 JavaScript 中,apply 是函数的一个方法,用于调用一个具有给定 this 值的函数,以及以一个数组(或类...
npm WARN deprecated hawk@3.1.3: This module moved to @hapi/hawk. Please make sure to switch ...
简介:cb.apply is not a function 执行gitbook init 出现如下报错: 找到提示路径,打开 polyfills.js 文件,找到这个函数。 在第65-67 行调用了这个函数 fs.stat=statFix(fs.stat)fs.fstat=statFix(fs.fstat)fs.lstat=statFix(fs.lstat) 把这三行代码注释掉就解决报错了 是因为npm版本的问题,可以参考以下两个...
Live reload server started on port:35729PressCTRL+Cto quit.../usr/local/lib/node_modules/gitbookclinode_modulesnpmnode_modulesgracefulfspolyfills.js:287if(cb)cb.apply(this,arguments)^TypeError:cb.apply is not afunctionat/usr/local/lib/node_modules/gitbook-cli/node_modules/npm/node_modules/grace...
执行gitbook -V的时候出现如下错误 [root@pes nodejs]# gitbook -V CLI version:2.3.2Installing GitBook3.2.3/data/soft/nodejs/lib/node_modules/gitbook-cli/node_modules/npm/node_modules/graceful-fs/polyfills.js:287if(cb) cb.apply(this, arguments)^TypeError: cb.apply is not afunctionat/data/so...
gitbook出现TypeError: cb.apply is not a function解决办法 执行gitbook -V的时候出现如下错误 [root@pes nodejs]# gitbook -V CLI version: 2.3.2 Installing GitBook 3.2.3 /data/soft/nodejs/lib/node_modules/gitbook-cli/node_modules/npm/node_modules/graceful-fs/polyfills.js:287...
Closed Gitbook error: "TypeError: cb.apply is not a function" #32 drwetter opened this issue Dec 29, 2020· 8 comments CommentsCollaborator drwetter commented Dec 29, 2020 In addition to #31 there's also another error when using docker-compose run --rm build cc @PauloASilva...
gitbook serve运行报错TypeError: cb.apply is not a function, 注释polyfills.js中的3行内容(62至64行) 重新运行命令 gitbookserve ,就可以了
问TypeError: cb.apply不是一个函数EN重写call Function.prototype.myCall = function (ctx) { //...