You can choose to either install Electron globally on your computer with the following command (don’t run this for now):

$ npm install electron -g

..or, you can install it as a development dependency in your app, which is what we will do.

Run the following command:

$ npm install electron --save-dev --save-exact