- 安装node 注意版本不能太高 参考:https://nodejs.org/zh-cn/download/package-manager
# layouts.download.codeBox.installsNvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
# layouts.download.codeBox.downloadAndInstallNodejsRestartTerminal
nvm install 12
# layouts.download.codeBox.verifiesRightNodejsVersion
node -v # layouts.download.codeBox.shouldPrint
# layouts.download.codeBox.verifiesRightNpmVersion
npm -v # layouts.download.codeBox.shouldPrint
- 安装 hexo
- hexo命令
hexo g #生成文件
hexo s #本地部署
hexo d #部署到GitHub