electron-forge 脚手架安装错误及解决方法

一、报错:You must depend on “electron-prebuilt-compile” in your devDependencies

electron-forge 脚手架安装错误及解决方法_第1张图片
解决方法对照如下代码有不一样的添加上去,或者全部复制粘贴替换也可以:

{
  "name": "my-new-app",
  "productName": "my-new-app",
  "version": "1.0.0",
  "description": "My Electron application description",
  "main": "src/index.js",
  "scripts": {
    "start": "electron-forge start",
    "package": "electron-forge package",
    "make": "electron-forge make",
    "publish": "electron-forge publish",
    "lint": "eslint src --color"
  },
  "keywords": [],
  "author": "Administrator",
  "license": "MIT",
  &

你可能感兴趣的:(electron)