If you are facing the "ENOENT, no such file or directory" error message when using fs.createWriteStream, check your file name again.
In my case, the last character is not the last character of file name, but carrage return (\r)
I lost 3 hours to find this simple answer. So I leave this memo.
Also keep in mind that it won't create directories for you. This means that if you have any directories within the file path that don't exist it will throw this error.