I recently started using electron. I have successfully completed the 1st phase by creating a hello world app (included files index.html, main.js, package.json). Now I am trying
There are two cases to make it work...
As discussed above, install electron globally using -g,
-g
i.e. using npm install -g electron-packager
npm install -g electron-packager
Change in your package.json:
package.json
"scripts": { "start": "electron-packager ." },
Then type in the command npm start.
npm start
This way it worked for me..