今天重装了下电脑,当我想用hexo写记录时候,忘记怎么装hexo,所以决定写一篇文章来记录下。
我本地的环境是win7(64位)。我需要安装node,npm。
1.去node的官网下载windows(64位) https://nodejs.org/en/#download
NOTE: 如果在官网下载的是.msi的文件,你直接点击安装就行了,如果你下载的.exe
文件,你需要在Windows的系统路径(环境变量)中配置文件所在的地址。
2.下载最新的npm源码 官网: https://github.com/npm/npm/tags
3.将下载的npm源码解压到npm文件中,然后执行下面命令:
4.安装完npm,现在通过npm安装hexo
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.
hexo 介绍
Quick Start
Create a new post
|
|
More info: Writing
Run server
|
|
More info: Server
Generate static files
|
|
More info: Generating
Deploy to remote sites
|
|
More info: Deployment