使用Node.js + Hexo搭建本网站
开始安装Hexo自行安装Node.js并配置环境变量 不多做解释 $ npm install hexo-cli -g 初始化网站$ npx hexo init 文件名 进入网站根目录$ cd 文件名 安装必备的组件$ npm install 测试网站$ npx hexo server 安装主题下载主题$ npm install hexo-theme-butterfly 安装主题打开根目录_config.yml配置文件 theme:butterfly 安装主题依赖npm install hexo-renderer-pug hexo-renderer-stylus --save 启动Hexo博客$ npx hexo server

.jpg)