Search code examples
node.jselectronelectron-builderelectron-packager

ENOENT Error - no such file or directory, open 'package.json', when packaged from Electron Builder/Packager both


The app packages successfully but gives an ENOENT error on opening it. After the app is written is the specified folder. On opening the Application file, an error is shown - ENOENT : no such file or directory. open 'package.json'

With Electron-Packager And Builder - I have tried a flat file structure as in electron-quick-start (main, package, index all in parent folder).

Also With Electron-Packager- Tried recommended file structure as well (src/main, index).

The error is same via Electron Builder & Packager both.

The details are as follows -

Package.json & CLI : https://i.sstatic.net/vzVR6.png

Error when Application is opened : https://i.sstatic.net/8mRq4.png

The Basic version of Project can be tested here : Downloadable Project


Solution

The bug is because of Electron-DB : here


Solution

  • The bug is because of Electron-DB : here