# DevOps **Repository Path**: tjufe-edu/devops ## Basic Information - **Project Name**: DevOps - **Description**: 日常开发文章总结 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2021-02-01 - **Last Updated**: 2024-03-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # devops ## 简介 本git内容为工作之中整理的内容,持续更新中...欢迎Star ## GitBook * 需要使用 nodeJS 版本为 10.14.1; * 执行如下命令 ``` npm install -g gitbook-cli; gitbook install gitbook serve ``` * 默认打开地址为 `http://localhost:4000`; ## 常见问题 * gitbook出现TypeError: cb.apply is not a function解决办法 https://www.cnblogs.com/cyxroot/p/13754475.html 打开polyfills.js文件,找到这个函数 ```javascript function statFix (orig) { if (!orig) return orig // Older versions of Node erroneously returned signed integers for // uid + gid. return function (target, cb) { return orig.call(fs, target, function (er, stats) { if (!stats) return cb.apply(this, arguments) if (stats.uid < 0) stats.uid += 0x100000000 if (stats.gid < 0) stats.gid += 0x100000000 if (cb) cb.apply(this, arguments) }) } } ``` 在第62-64行调用了这个函数,注释掉下述三行代码即可. ```javascript fs.stat = statFix(fs.stat) fs.fstat = statFix(fs.fstat) fs.lstat = statFix(fs.lstat) ```