I am using NeDB as a local storage for my electron app. Everything works fine except when I update my app , I want the data to be saved locally . But the new version cannot access data from files written by my old version . it throws an EACCESS : permission denied Exception.
var db = new Datastore({ filename:"PATH_TO_FILE",autoload:true});