I’m using Windows 10 64 bit and VSCode.
package.json:
{
  "name": "shopping-list",
  "version": "1.0.0",
  "description": "shopping list desktop app",
  "main": "main.js",
  "scripts": {
    "start": "electron ."
  },
  "author": "YousefMahmoud",
  "license": "MIT",
  "dependencies": {
    "electron": "^4.0.2"
  }
}
See the screenshot of the error:

 
    