1.查看有没有安装brew,终端输入:
brew
看到如下提示说明安装成功
Example usage:
brew search [TEXT|/REGEX/]
brew info [FORMULA...]
brew install FORMULA...
brew update
brew upgrade [FORMULA...]
brew uninstall FORMULA...
brew list [FORMULA...]
Troubleshooting:
brew config
brew doctor
brew install --verbose --debug FORMULA
Contributing:
brew create [URL [--no-fetch]]
brew edit [FORMULA...]
Further help:
brew commands
brew help [COMMAND]
man brew
https://docs.brew.sh
2.安装node与npm
brew install node
安装了node就带了npm。
查看是否安装成功:
//查看node版本
node -v
//查看npm版本
npm -v
3.安装了node和npm就可以安装gitbook了
npm install -g gitbook-cli
gitbook简单使用:https://blog.csdn.net/lu_embedded/article/details/81100704