epub
epub copied to clipboard
Error: Invalid/missing file
I use the code https://github.com/julien-c/epub/blob/master/example/example.js in my project
var EPub = require("epub");
var epub = new EPub("./111.epub", "/imagewebroot/", "/articlewebroot/");
epub.on("error", function(err){
console.log("ERROR\n-----");
throw err;
});
Error: Invalid/missing file
at EPub.open (/Users/menglingyu/mly/anywhere-reader/node_modules/epub/epub.js:103:32)
at EPub.parse (/Users/menglingyu/mly/anywhere-reader/node_modules/epub/epub.js:89:14)
at Object.<anonymous> (/Users/menglingyu/mly/anywhere-reader/epub-dome/index.js:38:6)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:191:16)
The same problem. Please, help!