配置环境
- 安装npm环境 https://www.npmjs.com/
- 安装nodejs https://nodejs.org/en/
- 安装Git
- 打开Terminal, 执行以下命令
1
2
3
4
5
6
7
8
9$ npm install hexo-cli -g
$ hexo init [your_blog_folder_name]
$ cd [your_blog_folder_name]
$ npm install
$ hexo server
1 | $ npm install hexo-cli -g |
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.