About hexo blog to build -1

A few days ago I received the task to build hexo blog, where I set up the recording process.

1. First configure the local environment, the official website to download node official website to download
and follow the prompts to install, install to a different disk. Here I installed the "D: \ download \ New Folder "
to open the cmddetection installation

1     node -v
2     npm -v


2. Open the directory just installed, create a folder node_globalandnode_cache

1   npm config set prefix "D:\download\New Folder\node_global"
2   npm config set cache "D:\download\New Folder\node_cache"

Configuration Environment Variables
new variables NODE_PATHand Pathboth values are "D: \ downloads \ New Folder \ node_global"
Here Insert Picture Description
4. Test global variable
opening cmdinstallation hexo -cli, then the following command

1  npm install hexo-cli -g
2  hexo

Successful installation
If you want to detect hexo created, you can enter the code below Here Insert Picture Description
and then you can enter http: // localhost: 4000 / viewed

Reference article from hexo deployment

Released seven original articles · won praise 2 · Views 270

Guess you like

Origin blog.csdn.net/sy140823/article/details/88668587
Recommended