javascript - wordpress迁移到hexo
本文介绍了javascript - wordpress迁移到hexo的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
[root@fengqiang1 hexo-site]# hexo migrate wordpress /data/wwwroot/wordpress.xml
INFO Analyzing /data/wwwroot/wordpress.xml...
/data/wwwroot/hexo-site/node_modules/.0.1.2@hexo-migrator-wordpress/index.js:35
if (err) throw err;
^
Error: Invalid URI "/data/wwwroot/wordpress.xml"
at Request.init (/data/wwwroot/hexo-site/node_modules/.2.81.0@request/request.js:276:31)
at new Request (/data/wwwroot/hexo-site/node_modules/.2.81.0@request/request.js:130:8)
at request (/data/wwwroot/hexo-site/node_modules/.2.81.0@request/index.js:54:10)
at /data/wwwroot/hexo-site/node_modules/.0.1.2@hexo-migrator-wordpress/index.js:34:9
at fn (/data/wwwroot/hexo-site/node_modules/.0.9.2@async/lib/async.js:638:34)
at Immediate._onImmediate (/data/wwwroot/hexo-site/node_modules/.0.9.2@async/lib/async.js:554:34)
at processImmediate [as _immediateCallback] (timers.js:383:17)
解决方案
执行目录在当前文件夹下 就ok了 把xml文件放到的hexo根目录
https://github.com/hexojs/hex...
这篇关于javascript - wordpress迁移到hexo的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文