hexo&git 部署和粗修
第一次配置hexo
- 安装Git
- 安装
 - 配置SSH
ssh-keygen -t rsa -C "你的邮箱地址"回车回车生成.SSH和.PUB文件- 复制文件内容到Github
 ssh -T git@github.com检查和授权
 
 
安装Nodejs
https://blog.csdn.net/qq_48485223/article/details/122709354- 安装
 - 在nodejs文件夹下配置两个子文件夹node_global和node_cache
npm config set cache "D:\Engineering\nodejs\node_cache"
npm config set prefix "D:\Engineering\nodejs\node_global"- 新建环境变量
NODE_PATH =D:\Engineering\nodejs\node_modules(node_modules 路径)
PATH 添加D:\Engineering\nodejs\node_global(node_global 路径) 
 
安装hexo
(-g为全局安装命令)
npm install -g hexo-cli  | 
如果Git失败
ipconfig /flushdns  | 
git config --global http.sslVerify "false"  | 
安装主题
Volantis
git clone https://github.com/volantis-x/hexo-theme-volantis.git themes/volantis  | 
Butterfly
git clone -b master https://github.com/jerryc127/hexo-theme-butterfly.git themes/butterfly  | 
Stellar
git clone https://github.com/xaoxuu/hexo-theme-stellar.git themes/stellar  | 
Npm 包配置
npm install --save hexo-deployer-git  |