I’ve run into Node.js a few times and kinda struggled with just what it’s all about. I’ve decided to have a bit of a poke at trying to develop an application that is cross platform and runs locally on either Windows or Linux, maybe even the fruit stuff and ran into Electron.
I’ll confess to being completely lost as to how to even begin. Setting it up seemed confusing in the documentation. In reality it pretty much fell onto my Windows machine once I figured it out.
Installing Electron on Windows is as simple as downloading the Node.js installer from https://nodejs.org/en/ and running it.
From a command line (PowerShell), create a project directory, call the Node Package Manager – npm and get it to download and install Electron using:
> mkdir c:\myproject > cd c:\myproject > npm install --save-dev electron-prebuilt
Then you can start building your app with all the coolness of Electron.
npm WARN deprecated firstname.lastname@example.org: electron-prebuilt has been renamed to electron. For more details, see http://electron.atom.io/blog/2016/08/16/npm-install-electron