在 package.json 中 将调起 vuepress 本地运行的命令 由
"dev" : "vuepress dev docs"
改为
"dev": "vuepress dev docs --temp .temp"
即可解决
附:
因为届时运行vuepress 会生成一个 .temp 文件作为临时文件,使用Git的同学没必要上传维护这个文件,只要在 .gitignore 中添加:
# vuepress temp file
.temp
Git会自动忽略这一文件夹。