nobug.world

Peng Jiajun的个人记录

前置准备

安装Node.js

Node.js (nodejs.org)

验证安装结果:

1
node -v

配置国内镜像加速:

npm报错:request to https://registry.npm.taobao.org failed, reason certificate has expired_npm reason: certificate has expired-CSDN博客

1
npm config set registry https://registry.npmmirror.com

安装Git

Git - Downloads (git-scm.com)

安装hexo

安装hexo:

1
npm i hexo-cli -g

查看安装结果:

1
hexo -v

升级Hexo:Hexo版本升级指南 | novnan’s notes

Read more »

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.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

0%