安装 Gitbook

安装 Node.js

安装 nvm(Node Version Manager)

$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash

安装 Node.js,注意要使用版本10

$ nvm install 10

安装 Gitbook

$ npm install -g gitbook-cli