




已阅读5页,还剩3页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
个人搭建hexo并部署到github期间遇到的问题 psychola第一次搭建hexo并部署到github,参考了文章“史上最详细“截图”搭建Hexo博客并部署到Github”这上面步骤很全但是,还是出现了一些问题,只靠这个没法解决:1. 当你hexo generate时一直报错cannot find module报错为:1ERROR Error: Cannot find module bluebird at Function.Module._resolveFilename (module.js:336:15) at Function.Module._load (module.js:286:25) at Module.require (module.js:365:17) at require (module.js:384:17) at Object. (D:Hexonode_moduleshexolibhexoindex.js :3:15) at Module._compile (module.js:434:26) at Object.Module._extensions.js (module.js:452:10) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) at Module.require (module.js:365:17) at require (module.js:384:17).1$ npm install -save bluebird解决办法:安装相应组件如p.s.后来安装后 继续输入hexo g, hexo d(这些为generate和deploy的缩写,可以使用代替)仍然报错说Cannot find module hexo-generator-category及以下列表中的组件- hexo-pagination- ejs- marked- stylus- connect- lodash- strip-indent- nib- chalk- hexo-util- compression此时只要继续像刚才一样输入下载相应组件的代码即可2. $ hexo deploy时一直报错ERROR Deployer not found: github报错为:error: failed to execute prompt script (exit code 1)fatal: could not read Username for : No error解决办法:o 先把_config.yml文件中的type值从github改为git(因为hexo3.0+有一些改变)o repository值改为 ssh://lijialalala/lijialalala.github.io.gito 再输入命令行npminstallhexodeployergitsave和npm install hexo-server save3. 后来我又出现了 Host key verification failed. fatal: Could not read from remote repository.错误报错为:1Please make sure you have the correct access rightsand the repository exists.FATAL Somethings wrong. Maybe you can find the solution here: http:/hexo.io/docs/troubleshooting.htmlError: Host key verification failed.fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists. at ChildProcess. (D:Hexonode_moduleshexo-deployer-gitnode_moduleshexo-utillibspawn.js:42:17) at emitTwo (events.js:87:13) at ChildProcess.emit (events.js:172:7) at maybeClose (internal/child_process.js:817:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)解决办法:此时输入最初搭建时的密码然后验证的时候 回复yes就可以了如:1AdministratorUSER-20140708CY MINGW64 /d/Hexo$ ssh The authenticity of host (29) cant be established.RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.Are you sure you want to continue connecting (yes/no)?* yes*Warning: Permanently added ,29 (RSA) to the list of known hosts.PTY allocation request failed on channel 0Hi lijialalala! Youve successfully authenticated, but GitHub does not provide shell access.Connection to closed.4.借助“多说”来建立留言区o 首先进入多说首页注册 然后点击“我要安装”(此时会进入 创建站点 的页面,填完后要记住自己的多说域名要填的那部分,即二级域名后面会用到。)o 点击确认后,进入页面获取代码,再根据“在hexo中加入多说评论”的步骤即可完成哦5.解决Permission denied (publickey). fatal: Could not read from remote repository.”和“Please make sure you have the correct access rights and the repository exists.”的错误o 重新下过旧版本的msysgit即可详情参见“解决hexo一个奇怪的错误” 6.“Swiftype”/“微搜索”建立站内搜索功能o 帐号注册的步骤及非next主题下的搜索部署完全可以参考文章“利用swiftype为hexo添加站内搜索v2.0”o 因为我用的是next主题 所以只需将swiftype的key写入next主题下的_config.yml文件即可,无需把那段生成的script脚本添加到header文件中1swiftype_key: yourswiftypekey其中key即为注册时js中的st(install,yourswiftypekey)不清楚的可以参考文章“为hexo-next主题添加tinysou/Swiftype 站内搜索”7.标签和分类怎么用参照官网配置好后,只要在每篇文章里的分割线之前以列表的格式写就好了,如图:8.怎么让百度和google搜到你的文章呢参照这两篇文章可以解决google搜到文章的问题,但我向百度引擎入口提交了很多次还是没有搜到,也不明缘由,其中第二篇参考文献的作者也遇到了同样的问题,这个就代跟进把。文章如下:1. “Hexo优化如何向google提交sitemap(详细)”2. “博客推广提交搜索引擎”然后成功后:thats ALL,这仅是个人经验及多多百度问津的结果,如有错误请指出我会更改的。以下为参考文章,非常感谢:1. “史上最详细“截图”搭建Hexo博客并部署到Github”(/article/d8072ac47aca0fec95cefd2d.html%5D%28/article/d8072ac47aca0fec95cefd2d.html)2. “在hexo中加入多说评论”(/%E5%9C%A8hexo%E4%B8%AD%E5%8A%A0%E5%85%A5%E5%A4%9A%E8%AF%B4%E8%AF%84%E8%AE%BA/)3. “解决hexo一个奇怪的错误” (http:/www.cognize.me/2015/08/22/msysgiterror/)4. “利用swiftype为hexo添加站内搜索v2.0” (/post/search-engine-for-hexo-with-swiftype-v2.html)5. “为hexo-next主题添加tinysou/Swiftype 站内搜索”(/posts/%E4%B8%BAhexo-next%E4%B8%BB%E9%A2%98%E6%B7%BB%E5%8A%A0tinysou-S
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2024年江西中烟工业公司笔试试题及答案
- 川菜考试题及答案
- 取样考试题及答案
- 办公考试题及答案
- 中华传统文化融入《思想道德与法治》知到智慧树答案
- 基础护理学习题及答案
- 高血压试题及答案4
- 2025年二手车转让与售后服务保障协议
- 2025年房屋拆迁补偿安置协议书范本与案例分析
- 2025年度养老地产项目委托销售代理协议
- 电影院安全生产与安全管理规定制度
- 废气处理合同协议
- 镁铝合金行业前景
- 2025-2030中国余热回收行业市场现状供需分析及投资评估规划分析研究报告
- 无人机物流配送服务手册
- 见证取样送检计划方案
- 二年级上册语文课内阅读理解每日一练(含答案)
- 2025-2030年中国功率器件市场发展趋势规划研究报告
- 基层管理培训课程
- 宇宙飞船的发射与回收技术分析
- 2024考研 政治 思维导图(马原)
评论
0/150
提交评论