前言
之前在找教程,但总是碰到些问题,搞了几个小时,总结下经验,只适合== window ==
遇到的问题解决方法
- npm 资源在国外,运行非常慢,
改用淘宝 NPM 镜像, https://npm.taobao.org/
方法执行:npm install -g cnpm --registry=https://registry.npm.taobao.org
用npm执行都改成cnpm - 上面安装淘宝 NPM 镜像报错
- 报错:npm ERR! code UNABLE_TO_VERIFY_LEAF_SIGNATURE
方法执行:npm config set strict-ssl false
详细:https://segmentfault.com/q/1010000008624956
详细:https://my.oschina.net/LinearLawX/blog/893696 - 到最后部署git报错
报错:warning: LF will be replaced by CRLF
方法执行:git config --global core.autocrlf false
详细:https://blog.csdn.net/wxl1555/article/details/53033739
详细:https://www.cnblogs.com/sminocence/p/9357209.html
什么是 Hexo?
Hexo 是一个快速、简洁且高效的博客框架。Hexo 使用 Markdown(或其他渲染引擎)解析文章,在几秒内,即可利用靓丽的主题生成静态网页。
一、所需软件
- Git
- NodeJs(>=6.9)
二、下载并安装
1、Git
Git for