Melindrea / grunt-epub

Creates epub from specified files
MIT License
9 stars 3 forks source link

Error: Cannot find module '../libs/metafiles' #6

Open timtribers opened 8 years ago

timtribers commented 8 years ago

Hi @Melindrea

Thanks for providing this Grunt task.

I'm just trying to get it running but am getting the above error before I even try to configure a task. Its being thrown by line 15 of tasks/epub.js: metafiles = require('../libs/metafiles'), because there is no libs directory at all !

I did get some warnings during the npm install (that various dependencies were at deprecated versions), but it worked, and I can see chalk, mime, underscore and xmlbuilder in the node_modules.

Any ideas?

timtribers commented 8 years ago

Ok, if I manually copy in the missing libs folder from the repo here, the error goes away :) But still no joy generating a pub file (although it does create the directory ready for the output :(

Melindrea commented 8 years ago

Heya!

I haven't actually looked at this repo in ... gosh, no idea. I'll see about looking over it this weekend

On 2016-04-20 18:31, timtribers wrote:

Ok, if I manually copy in the missing libs folder from the repo here, the error goes away :) But still no joy generating a pub file (although it does create the directory ready for the output :(

You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub [1]

*

Links:

[1] https://github.com/Melindrea/grunt-epub/issues/6#issuecomment-212502850

timtribers commented 8 years ago

Thanks for that @Melindrea

I should add that (now I have manually copied over that directory) the console says:

File "blah/blah/blah.epub" created.

and grunt finishes with no errors - but also no output in the dest directory.

However, I can see that it has generated a content.opf and a toc.ncx in my build directory. So I think its heading in the right direction :)

But, first and foremost, my issue remains what I initially reported. Unless the task installs correctly, I cannot easily run it my continuous integration setup.

Hope that makes sense.

Thanks

Melindrea commented 8 years ago

Yes, I completely understand. =)

Once you get it to work, I'd love to peek at your CI, since that sounds like what I was originally wanting to do when I wrote this task

On 2016-04-20 19:08, timtribers wrote:

Thanks for that @Melindrea [1]

I should add that (now I have manually copied over that directory) the console says:

File "blah/blah/blah.epub" created.

and grunt finishes with no errors - but also no output in the dest directory.

However, I can see that it has generated a CONTENT.OPF and a TOC.NCX in my build directory. So I think its heading in the right direction :)

But, first and foremost, my issue remains what I initially reported. Unless the task installs correctly, I cannot easily run it my continuous integration setup.

Hope that makes sense.

Thanks

You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub [2]

*

Links:

[1] https://github.com/Melindrea [2] https://github.com/Melindrea/grunt-epub/issues/6#issuecomment-212517867

timtribers commented 8 years ago

Oh, I'm wondering if its expecting zip to be available as a shell command. Since I'm running on windows (although my CI server won't be), it isn't available.

timtribers commented 8 years ago

@Melindrea If zipping is a problem on Windows, you could always depend on grunt-zip - it works well for me when I use it in other tasks.