Danacus / node-factorio-api

Download and update mods from the Factorio Mod Portal
3 stars 2 forks source link

File does not exist error #11

Open Danielv123 opened 6 years ago

Danielv123 commented 6 years ago

So one of my users got this error when downloading a mod. I can't reproduce, but he could.

: { [Error: ENOENT: no such file or directory, stat 'C:\Clustorio\factoriocluterio\mod_cache.json'] errno: -4058, code 'ENOENT', syscall: 'stat', path: 'C:\Clustorio\factoriocluterio\mod_cache.json' }

Danacus commented 6 years ago

It might be related to #10, I'll look into the issue soon, but I don't have time right now.

Danacus commented 6 years ago

I've upgraded all dependencies, including fs-jetpack which had some issues that might be related to this issue.

I'm almost done with the new version, I just have to write some tests before recommending anyone to use it.

Oh and the get mods from a save thing ... broke again! (and I have no idea how to fix it :p, but i'll try my best).

Also, the new version won't actually save the mod cache to a file, as it never really made a lot of sense. So this issue won't be a problem soon anyway.

Please let me know if this fixes the issue.