Installing GitBook 3.2.3 (node:90003) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only. (Use `node --trace-deprecation ...` to show where the warning was created) xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance No receipt for'com.apple.pkg.CLTools_Executables' found at '/'. No receipt for'com.apple.pkg.DeveloperToolsCLILeo' found at '/'. No receipt for'com.apple.pkg.DeveloperToolsCLI' found at '/'. gyp: No Xcode or CLT version detected! (node:90043) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only. (Use `node --trace-deprecation ...` to show where the warning was created) xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance No receipt for'com.apple.pkg.CLTools_Executables' found at '/'. No receipt for'com.apple.pkg.DeveloperToolsCLILeo' found at '/'. No receipt for'com.apple.pkg.DeveloperToolsCLI' found at '/'. gyp: No Xcode or CLT version detected! /usr/local/lib/node_modules/gitbook-cli/node_modules/npm/node_modules/graceful-fs/polyfills.js:287 if (cb) cb.apply(this, arguments) ^ TypeError: cb.apply is not a function at /usr/local/lib/node_modules/gitbook-cli/node_modules/npm/node_modules/graceful-fs/polyfills.js:287:18 at FSReqCallback.oncomplete (node:fs:196:5)
Installing GitBook 3.2.3 SOLINK_MODULE(target) Release/.node CXX(target) Release/obj.target/fse/fsevents.o /usr/local/lib/node_modules/gitbook-cli/node_modules/npm/node_modules/graceful-fs/polyfills.js:287 if (cb) cb.apply(this, arguments) ^ TypeError: cb.apply is not a function at /usr/local/lib/node_modules/gitbook-cli/node_modules/npm/node_modules/graceful-fs/polyfills.js:287:1
修复:
1 2
$ cd /usr/local/lib/node_modules/gitbook-cli/node_modules/npm/node_modules/ $ npm install graceful-fs@latest --save
Live reload server started on port: 13244 Press CTRL+C to quit ...
info: 7 plugins are installed info: loading plugin "livereload"... OK info: loading plugin "highlight"... OK info: loading plugin "search"... OK info: loading plugin "lunr"... OK info: loading plugin "sharing"... OK info: loading plugin "fontsettings"... OK info: loading plugin "theme-default"... OK info: found 1 pages info: found 0 asset files internal/streams/readable.js:630 if (state.pipes.length === 1) { ^ TypeError: Cannot read property 'pipes' of undefined at ReadStream.Readable.pipe (internal/streams/readable.js:630:13) at /Users/ordiy/.gitbook/versions/3.2.3/node_modules/cpr/lib/index.js:163:22 at callback (/usr/local/lib/node_modules/gitbook-cli/node_modules/npm/node_modules/graceful-fs/polyfills.js:299:20) at FSReqCallback.oncomplete (fs.js:192:21) ➜ isun-blog-book git:(master) ✗ gitbook serve --lrport 13244 --port 4002 book-blog ➜ isun-blog-book git:(master) ✗ npm install cpr npm WARN saveError ENOENT: no such file or directory, open '/opt/ordiy/px03-private-project/isun-blog-book/package.json' npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN enoent ENOENT: no such file or directory, open '/opt/ordiy/px03-private-project/isun-blog-book/package.json' npm WARN isun-blog-book No description npm WARN isun-blog-book No repository field. npm WARN isun-blog-book No README data npm WARN isun-blog-book No license field.
+ cpr@3.0.1 added 16 packages from 15 contributors and audited 16 packages in 4.371s 1 package is looking for funding run `npm fund` for details found 0 vulnerabilities ╭────────────────────────────────────────────────────────────────╮ │ │ │ New major version of npm available! 6.14.13 → 7.19.0 │ │ Changelog: https://github.com/npm/cli/releases/tag/v7.19.0 │ │ Run npm install -g npm to update! │ │ │ ╰────────────────────────────────────────────────────────────────╯