個(gè)人搭建hexo并部署到github期間遇到的問題.doc_第1頁(yè)
個(gè)人搭建hexo并部署到github期間遇到的問題.doc_第2頁(yè)
個(gè)人搭建hexo并部署到github期間遇到的問題.doc_第3頁(yè)
個(gè)人搭建hexo并部署到github期間遇到的問題.doc_第4頁(yè)
個(gè)人搭建hexo并部署到github期間遇到的問題.doc_第5頁(yè)
已閱讀5頁(yè),還剩3頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

個(gè)人搭建hexo并部署到github期間遇到的問題 psychola第一次搭建hexo并部署到github,參考了文章“史上最詳細(xì)“截圖”搭建Hexo博客并部署到Github”這上面步驟很全但是,還是出現(xiàn)了一些問題,只靠這個(gè)沒法解決:1. 當(dāng)你hexo generate時(shí)一直報(bào)錯(cuò)cannot find module報(bào)錯(cuò)為: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解決辦法:安裝相應(yīng)組件如p.s.后來安裝后 繼續(xù)輸入hexo g, hexo d(這些為generate和deploy的縮寫,可以使用代替)仍然報(bào)錯(cuò)說Cannot find module hexo-generator-category及以下列表中的組件- hexo-pagination- ejs- marked- stylus- connect- lodash- strip-indent- nib- chalk- hexo-util- compression此時(shí)只要繼續(xù)像剛才一樣輸入下載相應(yīng)組件的代碼即可2. $ hexo deploy時(shí)一直報(bào)錯(cuò)ERROR Deployer not found: github報(bào)錯(cuò)為:error: failed to execute prompt script (exit code 1)fatal: could not read Username for : No error解決辦法:o 先把_config.yml文件中的type值從github改為git(因?yàn)閔exo3.0+有一些改變)o repository值改為 ssh://lijialalala/lijialalala.github.io.gito 再輸入命令行npminstallhexodeployergitsave和npm install hexo-server save3. 后來我又出現(xiàn)了 Host key verification failed. fatal: Could not read from remote repository.錯(cuò)誤報(bào)錯(cuò)為: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)解決辦法:此時(shí)輸入最初搭建時(shí)的密碼然后驗(yàn)證的時(shí)候 回復(fù)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.借助“多說”來建立留言區(qū)o 首先進(jìn)入多說首頁(yè)注冊(cè) 然后點(diǎn)擊“我要安裝”(此時(shí)會(huì)進(jìn)入 創(chuàng)建站點(diǎn) 的頁(yè)面,填完后要記住自己的多說域名要填的那部分,即二級(jí)域名后面會(huì)用到。)o 點(diǎn)擊確認(rèn)后,進(jìn)入頁(yè)面獲取代碼,再根據(jù)“在hexo中加入多說評(píng)論”的步驟即可完成哦5.解決Permission denied (publickey). fatal: Could not read from remote repository.”和“Please make sure you have the correct access rights and the repository exists.”的錯(cuò)誤o 重新下過舊版本的msysgit即可詳情參見“解決hexo一個(gè)奇怪的錯(cuò)誤” 6.“Swiftype”/“微搜索”建立站內(nèi)搜索功能o 帳號(hào)注冊(cè)的步驟及非next主題下的搜索部署完全可以參考文章“利用swiftype為hexo添加站內(nèi)搜索v2.0”o 因?yàn)槲矣玫氖莕ext主題 所以只需將swiftype的key寫入next主題下的_config.yml文件即可,無(wú)需把那段生成的script腳本添加到header文件中1swiftype_key: yourswiftypekey其中key即為注冊(cè)時(shí)js中的st(install,yourswiftypekey)不清楚的可以參考文章“為hexo-next主題添加tinysou/Swiftype 站內(nèi)搜索”7.標(biāo)簽和分類怎么用參照官網(wǎng)配置好后,只要在每篇文章里的分割線之前以列表的格式寫就好了,如圖:8.怎么讓百度和google搜到你的文章呢參照這兩篇文章可以解決google搜到文章的問題,但我向百度引擎入口提交了很多次還是沒有搜到,也不明緣由,其中第二篇參考文獻(xiàn)的作者也遇到了同樣的問題,這個(gè)就代跟進(jìn)把。文章如下:1. “Hexo優(yōu)化如何向google提交sitemap(詳細(xì))”2. “博客推廣提交搜索引擎”然后成功后:thats ALL,這僅是個(gè)人經(jīng)驗(yàn)及多多百度問津的結(jié)果,如有錯(cuò)誤請(qǐng)指出我會(huì)更改的。以下為參考文章,非常感謝:1. “史上最詳細(xì)“截圖”搭建Hexo博客并部署到Github”(/article/d8072ac47aca0fec95cefd2d.html%5D%28/article/d8072ac47aca0fec95cefd2d.html)2. “在hexo中加入多說評(píng)論”(/%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一個(gè)奇怪的錯(cuò)誤” (http:/www.cognize.me/2015/08/22/msysgiterror/)4. “利用swiftype為hexo添加站內(nèi)搜索v2.0” (/post/search-engine-for-hexo-with-swiftype-v2.html)5. “為hexo-next主題添加tinysou/Swiftype 站內(nèi)搜索”(/posts/%E4%B8%BAhexo-next%E4%B8%BB%E9%A2%98%E6%B7%BB%E5%8A%A0tinysou-S

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論