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 to create our first app, the scripts entry may contain some other value as shown below:

change the scripts entry to:

and you can try your app by running npm start from your application’s directory.

 

Leave a Reply