近期将操作系统重装之后需要重新部署hexo,安装maupassant主题时出了点问题,主题安装后所有网页输出均为空。报错为deploy方法git不存在和jade文件不能正常产生。解决该问题的方法如下:
- 在hexo目录下运行
1 | npm install hexo-deployer-git --save |
npm install hexo-renderer-sass
安装时会报错,是因为国内网络问题。需要使用代理或者切换至淘宝NPM镜像安装,地址为 http://npm.taobao.org/- 淘宝NPM镜像安装方法为将npm指令重写为cnpm指令:
1 | alias cnpm="npm --registry=https://registry.npm.taobao.org \ |
用cnpm指令替代npm指令即可成功安装hexo-renderer-sass