hexo的下载和安装
1 | 常用命令: |
1、利用 npm 命令即可安装。在任意位置点击鼠标右键,选择Git Bash输入命令:npm install -g hexo
2、创建文件夹(我的是在E盘创建的Hexo),然后在Hexo文件下,右键运行Git Bash,输入命令:hexo init在_config.yml,进行基础配置
部分报错
1.找不到git部署 ERROR Deployer not found: git
解决方法
npm install hexo-deployer-git –save
3.部署类型设置git
hexo 3.0 部署类型不再是github,_config.yml 中修改
Deployment
Docs: http://hexo.io/docs/deployment.html
deploy:
type: git
repository: git@.github.com:/***.github.io.git
branch: master
- xcodebuild
xcode-select: error: tool ‘xcodebuild’ requires Xcode, but active developer directory ‘/Library/Developer/CommandLineTools’ is a command line tools instance
npm install bcrypt - RSS不显示
安装RSS插件
npm install hexo-generator-feed –save
开启RSS功能
编辑hexo/_config.yml,添加如下代码: