boboidream / lofter2hexo Goto Github PK
View Code? Open in Web Editor NEWChange LOFTER.xml to Markdown files
Change LOFTER.xml to Markdown files
水平有限,我的解决方法是直接把js里命名的filename给去掉了_(:з」∠)_
希望能增加一个过滤标题字符的功能?把会导致识别错误的字符全部忽略掉就好了x
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)
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>
我尝试用这个工具导入网易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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.