Under windows hexo + github to build personal blog

Hexo use online tutorials to build a blog very much, most of the contents are similar, choose an appropriate reference, can be followed step by step.
However, due to the many blog Published relatively long and other issues, some of which are no longer applicable now operating, resulting in difficulties similar to me in the white building process.
So in my first blog, the problem areas of reference when I set up two major records a blog (online blog will lead to a lot of these problems, so if you encountered difficulties in building, may wish to come here looking at the answer)

Reference of two blog

Here attach links two of the blog:

windows under Hexo blog building process
solution installation failure on HEXO

The first chapter is to build the entire process, The second for an error correction in the first blog, it will be explained in detail below.

Errors in a blog needs to be corrected

1. Install hexo

When you want to perform this step,

npm install -g hexo

Do not execute this command but with the blog Second of two commands. (Some people may experience download speed is too slow, if you are college students, then try to use the campus network may be much better effect)

2. Initialize hexo

When you want to perform this step,

hexo init hexo

May not be as stated in the blog, prompting you to initialize successfully, the

Start blogging with Hexo!

The words, and there was an error on Install dependencies, and at this time do not care, you can proceed to the next step by tutorial.

3. About npm install

Do not use npm install, and use

cnpm install

Recall earlier blog specific reasons II that two commands.

Also, all of the following local use npm + ... in the form of operation, will be replaced by cnpm npm

4. Configuration github

Tutorial "page to select a theme github" This step is useless, can be skipped.

The local hexo hosted on github

Once again stressed that this step operation

npm install hexo-deployer-git --save

npm wanted to change cnpm

6. DNS

This step in writing this blog is too simple, and one of the steps omissions, it is recommended that separate themselves to find another course (for example, look for "How to Add a personal domain name for personal blog")

Another reminder that if you go to purchase a domain name cloud Ali, Ali cloud account at the time of registration, the user name of an account that is landing, not a nickname! When I got up in a very registered account name in two, and then after some time there will be a small customer service sister to call you to confirm your purchase information, this time she will pass on your username seriously a word read out the word! So in order to avoid the embarrassment of a name or a serious point of it.

Guess you like

Origin www.cnblogs.com/fyunaru/p/11294457.html