'looks-same' saves the diff file using fs.createWriteStream(), passing that path as a parameter. Now, fs.createWriteStream() fails when the directory the path is pointing to doesn't exist - and that's the problem.
the shown error:
ENOENT: no such file or directory, open '...'
possible solutions:
using fsExtra.outputFile() which creates any missing directories. (best IMO)
'looks-same' saves the diff file using fs.createWriteStream(), passing that path as a parameter. Now, fs.createWriteStream() fails when the directory the path is pointing to doesn't exist - and that's the problem.
the shown error:
possible solutions:
initially found here