Tag: Electron
-
Difference between Main process and Renderer process in Electron
In Electron, the process that runs the package.json’s main script is called main process.Each Electron app can have at-most one main process.Each webpage in Electron runs in its own process called renderer process. The main process manages all the web pages and their corresponding renderer processes. Each renderer process is isolated and manages only the […]
-
Write your first app in Electron
After installing Electron, with the following steps we can create a Electron app from scratch. Create an empty folder for storing your app files. Open terminal/command line and run npm init from that very folder. npm will guide you through creating your package.json file. Create main.js or index.js(default) file along with index.html file. After creating […]
-
missing script: start error in Electron
After installing required packages, when we try to run the new application created using Electron, it may show the following error: In order to remove this error, go to the package.json file created as a part of our Electron app and check whether the scripts entry has got the name ‘start’ and a value of ‘electron .’ When we try […]
-
EACCESS error in Electron installation
When we try to install Electron using npm in terminal(mac OS), it may throw EACCESS error due to some mismatch in npm permissions. Use sudo to install the package.If error throws up again even after using sudo, then the unsafe-perm flag need to be set to true.