Giter Club home page Giter Club logo

lofter2hexo's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

lofter2hexo's Issues

LOFTER.xml文件中如果有外链的话,将抛出如下错误

events.js:182
throw er; // Unhandled 'error' event
^

TypeError: Cannot read property '0' of null
at /usr/local/lib/node_modules/lofter2hexo/bin/readxml.js:144:82
at Array.forEach ()
at _parseContent (/usr/local/lib/node_modules/lofter2hexo/bin/readxml.js:143:26)
at parsearticle (/usr/local/lib/node_modules/lofter2hexo/bin/readxml.js:204:29)
at /usr/local/lib/node_modules/lofter2hexo/bin/readxml.js:70:31
at Array.forEach ()
at Object.parsePost (/usr/local/lib/node_modules/lofter2hexo/bin/readxml.js:67:23)
at /usr/local/lib/node_modules/lofter2hexo/bin/readxml.js:40:17
at /usr/local/lib/node_modules/lofter2hexo/bin/readxml.js:62:21
at Parser. (/usr/local/lib/node_modules/lofter2hexo/node_modules/xml2js/lib/xml2js.js:484:18)

导出md文件全部为空

image
导出了很多md文档但是都是空的
image
bao报错如上图,打码的是一个文章标题,这个文件没有建出来
【抱歉我不是程序员,只是真的很想把我的LOFTER备份出来】

throw er; // Unhandled 'error' event

E:\LOFTER>readxml
events.js:182
      throw er; // Unhandled 'error' event
      ^

TypeError: Cannot read property '0' of null
    at C:\Users\i\AppData\Roaming\npm\node_modules\lofter2hexo\bin\readxml.js:14
4:82
    at Array.forEach (<anonymous>)
    at _parseContent (C:\Users\i\AppData\Roaming\npm\node_modules\lofter2hexo\bi
n\readxml.js:143:26)
    at parsearticle (C:\Users\i\AppData\Roaming\npm\node_modules\lofter2hexo\bin
\readxml.js:204:29)
    at C:\Users\i\AppData\Roaming\npm\node_modules\lofter2hexo\bin\readxml.js:70
:31
    at Array.forEach (<anonymous>)
    at Object.parsePost (C:\Users\i\AppData\Roaming\npm\node_modules\lofter2hexo
\bin\readxml.js:67:23)
    at C:\Users\i\AppData\Roaming\npm\node_modules\lofter2hexo\bin\readxml.js:40
:17
    at C:\Users\i\AppData\Roaming\npm\node_modules\lofter2hexo\bin\readxml.js:62
:21
    at Parser.<anonymous> (C:\Users\i\AppData\Roaming\npm\node_modules\lofter2he
xo\node_modules\xml2js\lib\xml2js.js:484:18)

E:\LOFTER>


Error: Cannot find module 'image-downloader'

我尝试用这个工具导入网易163博客的xml (我猜跟lofter都是一样的格式),结果遇到以下错误。请问该怎么办?

$ node readxml.js
module.js:550
throw err;
^

Error: Cannot find module 'image-downloader'
at Function.Module._resolveFilename (module.js:548:15)
at Function.Module._load (module.js:475:25)
at Module.require (module.js:597:17)
at require (internal/module.js:11:18)
at Object. (/Users/xs2148/Documents/163toHexo/readxml.js:13:24)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (module.js:664:10)
at Module.load (module.js:566:32)
at tryModuleLoad (module.js:506:12)
at Function.Module._load (module.js:498:3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.