美文网首页
github 博客创建及文件推送

github 博客创建及文件推送

作者: 小飞侠zzr | 来源:发表于2017-11-13 21:56 被阅读0次

1.安装node 和 npm

切换淘宝镜像源

1.5 npm config set registry https://registry.npm.taobao.org

安装hexo

2.sudo npm install hexo -g

检测hexo

  1. hexo -h

创建本地文件夹并进入

4.mkdir blog&& cd blog

初始化hexo文件环境

  1. hexo init

启动本地hexo服务

  1. hexo server

  2. npm install hexo-deployer-git --save

hexo new 博客名称

hexo g 把md文件编译成html css js

hexo d 把静态文件发布到github

相关文章

网友评论

      本文标题:github 博客创建及文件推送

      本文链接:https://www.haomeiwen.com/subject/xpytvxtx.html