For me , I downgraded the electron version to make it compatible with nan of the node version and it worked. I used electron 30x