vue博客部署 - vuepress部署及腾讯云镜像替换
可能出现https://registry.npmjs.org网站访问不了的情况,需要换成国内源。(确保已经安装了node和npm)再重新进行【安装】。
·
安装
(确保已经安装了node和npm)
npm install -g vuepress
可能出现https://registry.npmjs.org网站访问不了的情况,需要换成国内源。
换源
npm config set registry https://mirrors.tencent.com/npm/
再重新进行【安装】。
部署
# 1.新建一个 markdown 文件
echo '# Hello VuePress!' > README.md
# 2.开始写作
vuepress dev .
# 3.构建静态文件
vuepress build .
第2步出现:
Error: Cannot find module ‘vue-template-compiler’
解决:
npm install vue-template-compiler --save-dev
效果
参考
1.换源
https://cloud.tencent.com/document/product/213/8623
2.部署
https://cloud.tencent.com/developer/article/1432748
更多推荐
所有评论(0)