How to install electron js in ( Mac, Windows, and Linux) and debug it?
Posted on November 24, 2021 at 06:57 AM
Electron JS is the open-source framework that allows us to build a desktop app for multiple platforms ( Mac, Windows, and Linux ). Electron is the combination of the Chromium rendering engine and Node runtime environment. Due to this, we can use web technologies to build our desktop app.
Before installing Electron JS, make sure to have the below-mentioned Softwares.
NPM ( Node Pack Manager )
To check if this software exists in your machine, Open up your command line or console and type:$ node -v$ npm -vIf your machine misses this software, you can download it from the official node.js website for your OS.
Installing Electron JS
While installing electron js, we have two options to install,
Install electron js as Global dependency.
Install electron js as Dev dependency.
For installing electron js as Global dependency run command,$ npm install electron -gFor installing electron js as Dev dependency run command,
$ npm install electron –save-dev –save-exact
How to Debugging Electron JS app