Skip to content
使用vuepress构建带有评论的个人博客
Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
.gitignore
README.md
deploy.sh
package-lock.json
package.json

README.md

使用 VuePress 构建个人博客

文档

开始

git clone https://github.com/yangtao2o/vuepress.git

cd vuepress

# 安装依赖
➜  vuepress git:(master) ✗ npm i

# 启动一个本地服务
➜  vuepress git:(master) ✗ npm run dev

> vuepress@1.0.0 dev /Users/yangtao/Documents/yangtao/myblog/vuepress
> vuepress dev docs

DONE  [11:06:21] Build 63b84b finished in 3731 ms!

> VuePress dev server listening at http://localhost:8080/vuepress/

# 构建发布
npm run deploy

报错

Question

(node:84725) UnhandledPromiseRejectionWarning: TypeError: res.getHeader is not a function

查看: Issues

解决:

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.

You can’t perform that action at this time.