However, I do have the file dir-reader.js in fstream in my local pimatic-app folder as well as in /usr/local/lib, and they are identical.
Not sure why there is one in /usr/local/lib. It shouldn’t have any effect.
Next to that: I have multiple versions of dir-reader.js also under other modules like sqlite3 in my pimatic-app modules folder structure.
Same with me. That’s normal, because fstream seems to be a popular library. Nevertheless you still try do delete fstream from there and install it again like I wrote before. It’s worth a try, and I think i fixed it this way, too.