搭建视频:【2021最新版】保姆级Hexo+github搭建个人博客_哔哩哔哩_bilibili
创建博客时要在空文件夹中创建,不然会报错
下载插件时:
npm install hexo-deployer-git --save
一度以为自己出错了,实际上没错
然后hexo d上传时一直出错:网上找了很多都没找到解决方法,最后还是这篇文章解决了,天不亡我
hexo搭建错误之Spawn-Failed-窝四腻蝶 (gitee.io)
D:\blog>hexo d INFO Deploying: git INFO Clearing .deploy_git folder... INFO Copying files from public folder... INFO Copying files from extend dirs... warning: LF will be replaced by CRLF in 2020/04/27/hello-world/index.html. The file will have its original line endings in your working directory warning: LF will be replaced by CRLF in 2020/04/27/我的第一篇博客文章/index.html. The file will have its original line endings in your working directory warning: LF will be replaced by CRLF in archives/2020/04/index.html. The file will have its original line endings in your working directory warning: LF will be replaced by CRLF in archives/2020/index.html. The file will have its original line endings in your working directory warning: LF will be replaced by CRLF in archives/index.html. The file will have its original line endings in your working directory warning: LF will be replaced by CRLF in css/style.css. The file will have its original line endings in your working directory warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-buttons.css. The file will have its original line endings in your working directory warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-buttons.js. The file will have its original line endings in your working directory warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-media.js. The file will have its original line endings in your working directory warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-thumbs.css. The file will have its original line endings in your working directory warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-thumbs.js. The file will have its original line endings in your working directory warning: LF will be replaced by CRLF in fancybox/jquery.fancybox.css. The file will have its original line endings in your working directory warning: LF will be replaced by CRLF in fancybox/jquery.fancybox.js. The file will have its original line endings in your working directory warning: LF will be replaced by CRLF in fancybox/jquery.fancybox.pack.js. The file will have its original line endings in your working directory warning: LF will be replaced by CRLF in index.html. The file will have its original line endings in your working directory warning: LF will be replaced by CRLF in js/script.js. The file will have its original line endings in your working directory
*** Please tell me who you are.
Run
git config
|
这段报错的意思就是你的账户默认标识
你只要输入
D:\blog>git config --global user.email "210173313@qq.com"
D:\blog>git config --global user.name "210173313"
|
第一个就是你的邮箱,第二个就是你的用户名
再输入hexo d就可以了
哈哈