jprichardson / node-jsonfile

Easily read/write JSON files.
MIT License
1.2k stars 321 forks source link

Error when running on windows #60

Closed Egoscio-zz closed 8 years ago

Egoscio-zz commented 8 years ago

Hello, I ran my code on my Mac and it worked fine, but when I send it to my friend who runs windows, he gets the following error:

imgpsh_fullsize

I tried doing a self diagnosis, and found the following issue with a related error: https://github.com/jprichardson/node-jsonfile/issues/40

Could node-fs-extra help?

The code in question writes to a directory with dynamically created files (I'm depending on jsonfile to create the files), so I assume fs-extra's outputJson will fix the whole issue, correct?

Thank you,

-- Egoscio

jprichardson commented 8 years ago

I assume fs-extra's outputJson will fix the whole issue, correct?

Yes, it should.

Egoscio-zz commented 8 years ago

@jprichardson Thank you for the quick reply. I was baffled because of how the error's presence was inconsistent across operating systems. I'll try to add that over to my friend's setup, and will report back / close the issue shortly.

Egoscio-zz commented 8 years ago

Sorry for the delay, works perfectly fine now! Thanks @jprichardson !

jprichardson commented 8 years ago

Glad that it works!