I've come multiple times across a strange issue using Electron as a standalone web app framework:
npm ERR! code ELIFECYCLE npm ERR! errno ENOENT
Let me save you some time hereby giving the solution of this issue:
$ sudo npm install -g electron —unsafe-perm=true —allow-root
Launch the command above from your terminal and the problem will be solved.