You may have accidentally added /before XXXXX.
I expect it to write to the folder XXXXXthat is in the same place where you started the application, and then change your code to:
return fs.appendFile('XXXXX/' + title, product, 'utf8', function(err){
As / , . XXXXX, @Rahil Wazir.