but it is a little bit older so here are some additional steps you need to do.
There is also an issue with a lot of the features of the newer version of Gitbook. This is for example embedded URL or this Hint even. This will cause the cli version of gitbook to fail. For example {% embed url="https://github.com/chusiang/how-to-build-the-gitbook-with-gitbook-cli" caption="" %} will cause Template render error: ( ..../SnowWhite/this-and-that/using-gitbook-to-generate-the-documentation.md) [Line 7, Column 2] unknown block tag: embed make: * [build] Error 1
All in all, I didn't pursue this further due to the above-mentioned issues at the moment but I kept it here. It might be useful to others.
Prerequisites
You need:
Xcode
brew
git
make
Prepare Node Install
To be able to install npm and node you need to change some rights on the filesystem first: