-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/) | ||
|
||
## 文档 | ||
|
||
|
@@ -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. |