Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
yangtao2o committed May 22, 2020
1 parent f825016 commit 5f3ec2a
Showing 1 changed file with 3 additions and 33 deletions.
36 changes: 3 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 使用 VuePress 构建个人博客

- VuePress、Valine
- 我的博客示例:[yangtao.site/vuepress/](http://www.yangtao.site/vuepress/)
- 我的博客示例:[yangtao.site/vuepress/](https://www.yangtao.site/vuepress/)

## 文档

Expand All @@ -18,38 +18,8 @@ git clone https://github.com/yangtao2o/vuepress.git
cd vuepress

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

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

> [email protected] 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

```js
(node:84725) UnhandledPromiseRejectionWarning: TypeError: res.getHeader is not a function
yarn dev
```

查看: [Issues](https://github.com/vuejs/vuepress/issues/1417)

解决:

While the npm user can re-install webpack-dev-middleware with a specific version:

```bash
npm install [email protected]
```

When webpack-dev-middleware fixes the issue and publishes, the issue can be closed.

0 comments on commit 5f3ec2a

Please sign in to comment.