Hexo migrate WordPress

过程回顾

  1. 导出WordPress xml文件,直接在下载路径里面,未改文件名字“Wordpress.2021-01-07”。文件名路径 C:Users\0801205\Downloads。

  2. 在Git里启动安装 WordPress 迁移工具 参照官网

  3. 在git输入 hexo migrate wordpress C:Users\0801205\Downloads,路径外添加尖括号,并且路径安装文件显示的copy过来了。

  4. 启动 上述命令。

  5. 提示出现问题。

bash: syntax error near unexpected token `newline'
  1. 查资料,删除尖括号,重新启动,提示如下。

INFO  Validating config
FATAL {
  err: Error: Error: ENOENT: no such file or directory, open 'C:\Users0801205Downloads'
      at Hexo.module.exports (D:\gitLab\hexo-blog\vavadata\node_modules\hexo-migrator-wordpress\lib\migrator.js:77:11)
} Something's wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html
  1. 仔细看了提示,在当前git 文件下,找不到这个路径或者文件,于是将当前的程序包copy在d盘,

    路径如下 D:\gitLab\hexo-blog\vavadata

重启migrate,提示如下:

INFO  Validating config
FATAL {
  err: Error: Error: ENOENT: no such file or directory, open 'D:\gitLab\hexo-blog\vavadata\gitLabhexo-blogvavadata'
      at Hexo.module.exports (D:\gitLab\hexo-blog\vavadata\node_modules\hexo-migrator-wordpress\lib\migrator.js:77:11)
} Something's wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html

到这里提示路径文件还是不对,查不到。

  1. 更改路径,将xml文件改名,去掉日期,重新启动,问题依旧。

  2. 看了问题描述,路径方式与git当前是反的。一个\ /,Windows是 右斜线,git是向左斜线。

  3. 更新路径格式,问题依旧。

  4. 我觉得我似乎找到了什么,看到有教程介绍将xml文件名也输入。

  5. 看了一个教程,在文件路径上增加文件格式,WordPress.2021-01-07.xml 我需要再尝试一下。

$ hexo migrate wordpress WordPress.2021-01-07.xml
INFO  Validating config
INFO  Analyzing WordPress.2021-01-07.xml...
INFO  Post found: 棣栭〉
WARN  Post found but without any titles. Using Untitled Post - 1
WARN  Post found but without any titles. Using Untitled Post - 2
WARN  Post found but without any titles. Using Untitled Post - 3
WARN  Post found but without any titles. Using Untitled Post - 4
WARN  Post found but without any titles. Using Untitled Post - 5
WARN  Post found but without any titles. Using Untitled Post - 6
WARN  Post found but without any titles. Using Untitled Post - 7
WARN  Post found but without any titles. Using Untitled Post - 8
WARN  Post found but without any titles. Using Untitled Post - 9
WARN  Post found but without any titles. Using Untitled Post - 10
WARN  Post found but without any titles. Using Untitled Post - 11
INFO  Post found: 棣栭〉
INFO  Post found: 甯﹀疂瀹濆幓鍖婚櫌
INFO  Post found: 鍘诲崡澶т拱鍑犳湰鏃т功
INFO  Post found: 鏃犺榛戝澶氭极闀匡紝濮嬬粓浼氭湁澶╀寒
INFO  Post found: 浠婂ぉ鐪嬪埌浜嗛浄鍐涗竴鑸殑浜虹墿
INFO  Post found: 鍏抽棬姝囦笟
INFO  Post found: 鍗犲崰鍗犱汉
INFO  Post found: 涓栫晫锛屼綘濂斤紒
INFO  Post found: 浠婂ぉ锛屼綘鏈変簡鐢熷懡
INFO  Post found: 濡栨€毦鎵擄紝鎴樻枟涓旀寔涓斾箙
INFO  Post found: 浜戝崡锛岃缁欎汉浠竴涓兌甯?INFO  Post found: About
INFO  Post found: 澶т簨璁?INFO  Post found: 寮犳爧瀹?INFO  Post found: Links
INFO  Post found: 鍧ゅ痉鎷?WARN  Post found but without any titles. Using Untitled Post - 12
INFO  Post found: 寮犳爧瀹?WARN  Post found but without any titles. Using Untitled Post - 13
WARN  Post found but without any titles. Using Untitled Post - 14
WARN  Post found but without any titles. Using Untitled Post - 15
INFO  Post found: 璐ㄦ鎬诲眬锛氫紛鍒╁┐骞煎効閰嶆柟涔崇矇姹炲惈閲忓紓甯?INFO  Post found: 涓浗绀句繚缂磋垂杈惧伐璧?0%浠ヤ笂 181涓浗瀹朵腑鎺掔涓€
INFO  Post found: 缃戞洕闄曡タ瀹夊悍鎬€瀛?鏈堝瓡濡囬伃寮哄埗寮曚骇(鍥?
INFO  Post found: HI锛岄潚骞村垱鍒?INFO  Post found: 閽撻奔宀?INFO  Post found: 浣犱斧瑕佸浼氫娇鐢╣oogle锛?涓嶇炕澧欎篃鑳界敤
INFO  Post found: Google鍙堝嚭鏂拌姳鏍凤紝Google Earth 鏇存柊鐏槦鐗?INFO  Post found: ZZ灞€N甯稿
INFO  Post found: 11鏈堟渶鐏垎鐨勬墜鏈洪攢鍞簲缁橬exus 4锛屽鍦颁竴灏忔椂鍐呮姠璐竴绌?INFO  Post found: Syniverse Technologies 浣犳暍涓嶆暍寮勪釜鍏嶈垂鐨勬极娓告妧鏈紵
INFO  Post found: 涓€鍙ョ墷楠?INFO  Post found: 浣犳崲涓嶆崲锛?INFO  Post found: 鏈棩閬楄█
INFO  Post found: 涓婚璇濊
INFO  Post found: 涓婚璇濊2-骞冲畨澶?INFO  Post found: 骞冲畨澶滃墠涓嶅钩瀹?INFO  Post found: 鍦h癁鑺傚墠澶?1鍎跨鏍¤溅浜嬫晠閬囬毦锛?灏戝コ甯稿悆鍜歌彍纭瘖鎮h儍鐧?INFO  Post found: 鍥㈠洟鍑犳潯
INFO  Post found: 娣捣宸疯鐧惧害鍜実oogle鏀跺綍
INFO  Post found: open锛屼綘搴旇鏃舵椂鎯﹁
INFO  Post found: 鐢熺梾璁?锛氶€€浼戝悗鐨勭敓娲伙紝浣犵幇鍦ㄥ喅瀹氫簡55%
INFO  Post found: 鐢熺梾璁?锛氫汉鍦ㄥ洤閫斾箣鍘昏惀涓氬巺鎷挎墜鏈?INFO  Post found: 鐢熺梾璁? 杈炴棫杩庢柊 2013
INFO  Post found: 2012锛屾垜鏄繖鏍疯繃鏉ョ殑
INFO  Post found: 鍋囨棩浣欐俯锛屽姳蹇楀氨鍦ㄨ韩杈?INFO  Post found: 1314璋圚PNA
INFO  Post found: 鍏拌€冩皯鏀垮眬璇磋鍘夊鈥滆繚娉曟敹鍏烩€?INFO  Post found: 浠h喘鏈夐闄╋紝鏄皝涓嶈鑴?INFO  Post found: Google Adsense锛圙oogle缃戠珯鑱旂洘锛夊箍鍛婄敵璇锋寚鍗?杞嚜鏈堝厜鍗氬
INFO  Post found: 寰堥仐鎲撅紝鐩墠鏃犳硶鎵瑰噯鎮ㄥ姞鍏?AdSense
INFO  Post found: 浠栫獊鐒朵几鎵嬭繃鏉ワ紝骞镐簭鎴戦棯鐨勫揩
INFO  Post found: 瀹夊崜鎵嬫満瀹夎JunoWallet锛岃交鏉捐禋缇庨噾锛岄個璇风爜 KZ1620662銆備翰锛屾潵锛?INFO  Post found: 鏉ョ湅鐪?3宀佷紛鑳介潤鐫€姣斿熀灏兼媿鐨勬柊骞村啓鐪?INFO  Post found: 鍙犺瀛愪紶缁燂紝鍙尽鏁屽崈閲?INFO  Post found: 涓変汉琛岃帿鍓嶅悗鎺ヨ€?INFO  Post found: 姝e悜鍔涢噺20130114
INFO  Post found: 3-4澶╂病鎬庝箞杩涢锛?8灏忔椂鏈悎鐪笺€傘€傘€?INFO  Post found: 閭d簺骞达紝涓€璧烽€涜繃鐨勫綍鍍忓巺1
INFO  Post found: 29浜跨殑鍥板眬
INFO  Post found: 鏄庢槦楂樼涓嶅繀瑕佷笌浼佷笟涓€鐩村瓨鍦?INFO  Post found: 鏈夋湅鑷繙鏂规潵
INFO  Post found: 楹昏荆鎵嬫満锛屽悍甯堝倕鏂板勾鐜╄法鐣?INFO  Post found: PLC power line communication锛堢數鍔涚尗锛夊簲鐢ㄦ祴閫?INFO  Post found: 瀛︿範宕斿摬锛岀粓浜庝篃鎼炰釜clicki
INFO  Post found: 鍧ゅ痉鎷夊啓浜?012鍦h癁鐨刟bout me
INFO  Post found: 11:28涔嬪墠娣捣宸峰畷鎺夛紝鐩墠缃戠珯鍙互姝e父璁块棶
INFO  Post found: 绠¢亾涔嬬棝锛岀棝鍦ㄥ埄娆茬啅蹇?INFO  Post found: 鏄ヨ妭鏈熼棿涓嶆洿鏂帮紝绁濆悇浣嶆柊骞村揩涔愶紝鍚堝鍥㈠渾锛?INFO  Post found: Godaddy瀵嗙爜鍙奝assword Hint涓㈠け锛屽偦鐡滃紡鎵惧洖2013
INFO  Post found: 闀垮害涓庢棤搴︼紝涔熻皥鏉庡弻姹熶箣瀛?INFO  Post found: 绉戞妧鐨勬俯鎯呬笌瀛ょ嫭锛屽吋璋堟垚浜虹殑鐑︽伡
INFO  Post found: 鍦╣odady鍏ユ墜www.standcare.com 鍩熷悕涓€鏋?INFO  Post found: 涓撲笟鐨勫鏈瘎璁哄彧鏈変竷涓鑰?INFO  Post found: 鎷晳鑷繁锛屾垨璁歌嚜淇℃湁鐐圭敤
INFO  Post found: 鏁板涓庝汉鎬т箣寮?INFO  Post found: 蹇箰鍜岀粌涔?INFO  Post found: 鏅哄彇濞佽檸灞憋紝315鐙櫧
INFO  Post found: 鍧氬畧鐖辨儏锛屽皬涓夊拰灏忓伔涔熶細鎮勭劧鑰岄€€
INFO  Post found: 鎰熸縺锛屽彲浠ヨ鎴戜滑娲诲緱鏇撮暱涔?INFO  Post found: 鍧氭寔鍘熷垱锛屽仛鍒拌胺姝屾帓鍚嶇涓€
INFO  Post found: 涓栫晫锛屾偍濂斤紒
INFO  Post found: 璁剧疆涓や釜鍩熷悕鐨凞NS鎸囧悜鍚屼竴涓富鏈?-DONE
INFO  Post found: 鍚紶鏍嬪疂銆婃墦铔埞銆?INFO  Post found: VAVACLOUD閫氳繃闃块噷浜戠敵璇风綉绔欏妗?INFO  Post found: 瑙e喅WordPress绯荤粺妫€娴嬪埌鏂囦欢鐩綍鏉冮檺涓嶈冻锛屽疄鐜板畨瑁呮彃浠?INFO  Post found: 鎶靛埗锠㈣揣鈥斺€旇嚧闈掑勾
INFO  Post found: 鏌ュ埌nginx.conf閰嶇疆鏂囦欢锛岃В鍐?13闂锛?13 Request Entity Too Large
INFO  Post found: 涓や釜鍩熷悕鎴愬姛杞叆闃块噷浜戝強缃戠珯鐨勫嚑涓皬瑙勫垝v1.0
INFO  Post found: 浣涙墜婀栬笍闈?INFO  Post found: 鍗椾含甯傞暱姹熷ぇ妗ユ杩庝綘
INFO  Post found: 缃戠珯澶囨淇℃伅瀹屾垚姝g‘鏄剧ず
INFO  Post found: 鑿滃満鎷嗗幓浜嗕竴鍗?INFO  Post found: 娓呮槑鑺傚墠
INFO  Post found: 浣曚互瑙e咖
INFO  Post found: 閫氳繃mysql鏇存柊url淇℃伅锛屽疄娴嬪畬鎴?INFO  Post found: 淇敼Nginx锛岃В鍐冲浐瀹氶摼鎺ユ洿鏂?04闂
INFO  Post found: 5G瀵规櫤鎱т氦閫氬拰鏅烘収閲戣瀺褰卞搷鐨勫嚑鐐圭湅娉?INFO  Post found: 鍎垮瓙璇磋寰楁垜缁忓父璺熶粬璇寸殑閭d簺璇濓紝涓嶈鎴戝啀璇达紝浜庢槸鎴戞潵鑰冭€冧粬
INFO  Post found: 灏忕背10 Pro 涓嶅閿欒繃锛屾潵杩樻効浜?INFO  Post found: 鐜板疄鐨勬垜vs鐞嗘兂鐨勬垜
INFO  Post found: 鎸戝墧鐨勫鎴疯鎴戜滑鏇存帴杩戠湡瀹炵殑闇€姹?INFO  Post found: 鎵撻€犱笓涓欼P涓嶆槸涓€鏃ヤ箣鍔?INFO  Post found: 鏌愭櫤鎱х鐞嗛」鐩殑鍏ㄩ璁℃敹鍒嗘瀽
INFO  Post found: 鏌愰摱琛岀洃鎺х郴缁焩s鏌愮煶娌瑰叕鍙哥洃鎺х郴缁?INFO  Post found: NB-IOT 瀹氫綅鍣ㄥ湪绉诲姩鐘舵€佷笅鐗╄仈鐩戞帶鎬濊€?INFO  Post found: 鐩存挱鑳屽悗鐨勮棰戞祦澶勭悊
INFO  Post found: 鍒╃敤閲戝瓧濉斿師鐞嗕紭鍖?G+鏅烘収浜ら€氭柟妗?INFO  Post found: 5G鍦ㄦ櫤鎱у叕璺鐞嗗嚑涓棶棰樿璁?INFO  Post found: 鍏充簬鏂囧寲鐨勯棶鍗峰洖绛?INFO  Post found: 璁存瓕
INFO  Post found: 2011锛屽交搴曟敼鍙樹簡鎴戠殑鐢熸椿
INFO  Post found: 闃撮槼绔欏彴涓哄摢鑸?INFO  Post found: 灏变簨璁轰簨-姘村涓嬮潰濂戒箻鍑?INFO  Post found: 鍑虹潰瀹佽
INFO  Post found: 姝屾墜
INFO  Post found: 璧拌繃2008
INFO  Post found: 浜夊彇骞崇瓑浣曢』瀵嗚皨
INFO  Post found: 褰撳惉鍒拌繖涓秷鎭?INFO  Post found: 鐬岀潯铏?INFO  Post found: 娣疯处鏃舵湡鐨勭埍鎯?INFO  Post found: 杩欎釜瀛h妭
INFO  Post found: 鐑熻崏浼犺
INFO  Post found: 鍓茬ɑ瀛?INFO  Post found: 鏂囨槑鐨勮竟缂?INFO  Post found: 鍏冩湀涓夋棩鍗堝悗涓庤懀甯堝倕娓搁珮鏂板皬灞?INFO  Post found: 涓嬬彮褰掓棭
INFO  Post found: 杩欏北涓嶈兘鍐嶇編浜嗭紝涓冩湀锛岃璺熸垜鏉?INFO  Post found: 鏈堝厜鏇?INFO  Post found: 杩滆埅鐨勯浮
INFO  Post found: 10鍏噷鐙櫧
INFO  Post found: 鍓茬ɑ瀛?INFO  Post found: 绗戣瘽鎯╃綒
INFO  Post found: 澶滆壊锛岃悿鐏?INFO  Post found: 鍓茬ɑ瀛?鍒€瀹?涓ら
INFO  Post found: 鐢辩洿鎾炕杞︼紝璇翠竴璇村浣曟纭殑瀵瑰緟闂
INFO  Post found: 鍘荤摐鍩?INFO  Post found: 鑰佽
INFO  Post found: 鍐烽棬璇椾汉鐨勫洶鎵?INFO  Post found: 涓嬩竴绔?鍥涘崄浜?INFO  Post found: 鐝嶇彔娉夌櫥闀垮煄鎬€鍙?INFO  Post found: 姘磋皟姝屽ご  鎼鍓嶅
INFO  Post found: 瑗挎睙鏈埪封€嬮獞琛屾箹瑗胯閬囬洦 銆怷I JIANG YUE  CHINESE POEM銆?INFO  Post found: 浠嶲oS鏈嶅姟璐ㄩ噺璋堜紭鍏堢骇閲嶈鎬?INFO  Post found: 杩欏北涓嶈兘鍐嶇編浜?INFO  Post found: 鈥嬬揣鎬ョ殑JPS浼氳
INFO  Post found: 銆婂敭鍓峂KT濉潙鎸囧崡銆嬬殑鎬濊矾涓庤鍒?INFO  Post found: 闇€姹備笌鏈夋晥闇€姹?INFO  Post found: 涓烘ⅵ鎯宠€屾椿-鑷撮珮鑰冭€?INFO  Post found: 鍑哄煄璁?INFO  Post found: 闀胯宸村反
INFO  Post found: 2016骞?鏈?4鏃ヤ袱鍒欐柊闂绘湁鎰?INFO  Post found: Iztacc铆huatl灞辫胺闇茶惀璁板吋鎬€涓
INFO  Post found: 璺粡缁嶅叴鎬€椴佽繀鍏堢敓
INFO  Post found: 铦舵亱鑺辩澶滅紳
INFO  Post found: 涓夋湀浼氬弸涓嶈嚦
INFO  Post found: 纭竵
INFO  Post found: 妗ュ寳鍛ㄨ瘎涔?INFO  Post found: 妗ュ寳鍛ㄨ瘎鍏?INFO  Post found: 閰嶇疆鏋佺畝涓婚 Crazy Uncle
INFO  Post found: X鎬?INFO  Post found: 涓庢櫤鎱у悓琛?INFO  Post found: 闃挎尝缃椾笌娴+寰?INFO  Post found: 瀹氫綅鎽囨憜鐨勫敭鍓嶆妧鏈?INFO  Post found: 鍗佷竴鏈埪疯糠澶?INFO  Post found: 鍏湀鎭嬫瓕
INFO  Post found: 椤界煶
INFO  Post found: 01 鍒濊瘑 Git
INFO  Post found: 02 Git 鍛戒护鎽樺綍
INFO  Post found: 鏅烘収涓栫晫娌℃湁绗ㄨ泲銆佺┓浜哄拰浜屾祦璇椾汉
INFO  Post found: 娴佹按璐?INFO  Post found: 涓嶅Θ鎳傜偣鎴樼暐
INFO  Post found: 鑰佷笁浣撴
INFO  Post found: HEXO鎼缓鍗氬锛堜竴锛?INFO  Post found: 鐮斿彂涓庨攢鍞槸涓ょ被鐢熺墿锛岃涓ょ璇█
INFO  Post found: 鍙戠幇涓€鏋氫笉姝g粡鍞墠
INFO  Post found: 鏈涙妤?INFO  Post found: 鎶曟爣
INFO  Post found: 澶х害鍦ㄥ啲瀛?INFO  Post found: 姝g粡鏍囦功鎺掑簭澶ф硶
INFO  Post found: 2020鍐欏瓧灏忕粨
INFO  Post found: 2020鍐欏瓧灏忕粨
INFO  Post found: 涓鸿繍钀ュ晢璇村彞璇濓紝瀹炶返鏄楠岀湡鐞嗙殑涓€鎶婂昂瀛?INFO  Post found: 鏅烘収鍥尯绛旂枒绡?INFO  Post found: 鎵掓渤鐞愯
WARN  15 posts did not have titles and were prefixed with "Untitled Post".
INFO  197 posts migrated.
  1. 当前的hexo还是本地部署的,未关联域名。

  2. localhost:4000,出现了我想看到的一幕。

以英文模式输入~~~,成为,可以引用代码

2021年1月8日


发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注