# 使用 VuePress 构建个人博客
- VuePress、Valine
# 文档
- VuePress中文网
- Vuepress 搭建带评论功能的静态博客
- Valine - 一款快速、简洁且高效的无后端评论系统
- Valine: 独立博客评论系统
# 开始
git clone https://github.com/yangtao2o/vuepress-blog.git
cd vuepress-blog
# 安装依赖
➜ vuepress-blog git:(master) ✗ npm i
# 启动一个本地服务
➜ vuepress-blog git:(master) ✗ npm run dev
> vuepress-blog@1.0.0 dev /Users/yangtao/Documents/yangtao/myblog/vuepress-blog
> vuepress dev docs
DONE [11:06:21] Build 63b84b finished in 3731 ms!
> VuePress dev server listening at http://localhost:8080/vuepress-blog/
# 构建发布
npm run deploy
# 报错
# Question
(node:84725) UnhandledPromiseRejectionWarning: TypeError: res.getHeader is not a function
查看: Issues
# Ask
While the npm user can re-install webpack-dev-middleware with a specific version:
npm install webpack-dev-middleware@3.6.0
When webpack-dev-middleware fixes the issue and publishes, the issue can be closed.