gitbook

sudo npm install gitbook -g
sudo npm install -g gitbook-cli




https://www.jianshu.com/p/daa9d8d48577



gitbook init
You need to install “gitbook-cli” to have access to the gitbook command anywhere on your system.
If you’ve installed this package globally, you need to uninstall it.




Run “npm uninstall -g gitbook” then “npm install -g gitbook-cli”






npm install graceful-fs@latest



https://blog.csdn.net/qq_30033537/article/details/113738575



cd /usr/local/lib/node_modules/gitbook-cli/node_modules/npm/node_modules/
npm install graceful-fs@latest –save



https://stackoverflow.com/questions/64211386/gitbook-cli-install-error-typeerror-cb-apply-is-not-a-function-inside-graceful



https://github.com/GitbookIO/gitbook-cli/issues/110



gitbook serve没反应
% sudo npm install gitbook -g
Password:



% gitbook serve
You need to install “gitbook-cli” to have access to the gitbook command anywhere on your system.
If you’ve installed this package globally, you need to uninstall it.




Run “npm uninstall -g gitbook” then “npm install -g gitbook-cli”






nvm install 6.16.0
npm install -g gitbook-cli



gitbook init
gitbook install
gitbook serve



PluginError: Error with plugin “summary”: Unexpected token function



% npm i gitbook-plugin-summary –save
https://blog.csdn.net/qq_64092369/article/details/123050139



https://www.jianshu.com/p/2160f1ba68a0?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation



PluginError: Error with plugin “summary”: Unexpected token function



npm i gitbook-plugin-isummary



Couldn’t locate plugins “summary”



修改用户目录的.gitbook\versions\3.2.3\lib\output\website\copyPluginAssets.js文件,把112行的confirm改为false。



https://www.cnblogs.com/lingchen-liang/p/13537685.html



https://gitee.com/ji-song/gitbook-plugin-summary



npm install -g gitbook-summary



https://blog.csdn.net/weixin_34383618/article/details/91629912



book sm


Category web