Hexo博客搭建
Hexo 博客搭建一、安装Node .js和Git
验证:
123node -vnpm -vgit --version
觉得速度慢可以直接用cnpm或pnpm:
1npm install -g cnpm --registry=https://registry.npmmirror.com
本贴时间遥远,可能各Node组件版本有更新,据说部分新版本组件的配置文件格式、插件安装方式和Bug解决方式都不一样,需要自己想办法解决。
二、安装Hexo1npm install hexo-cli -g
验证:
1hexo -v
三、Github配置建立Github仓库左上角选择New repositories,仓库名起名为Monoceros406.github.io,并建立README文件,然后Creating repository
本地博客文件新建文件夹存放网站,并Git Bash Here。
12345678910#连接国内服务器(淘宝)npm install -g cnpm --registry=https://registry.npm.taobao.org#安装Hexocnpm ...