electron-egg electron-egg
首页
  • v4.x
  • v3.x
  • v2.x
插件
  • v4.x
  • v3.x
demo
支持
知识点
案例
交流
  • GitHub (opens new window)
  • Gitee (opens new window)
首页
  • v4.x
  • v3.x
  • v2.x
插件
  • v4.x
  • v3.x
demo
支持
知识点
案例
交流
  • GitHub (opens new window)
  • Gitee (opens new window)
❤️成为赞助商
  • 快速入门

    • 介绍
    • EE框架是什么?
    • 安装
      • 第三方使用
      • 快速开始
      • 配置

      • 命令
    • 基础功能

    • 生成软件

    • 升级

    • 跨语言支持

    • 更新记录
    • 常见问题
    目录

    安装

    # 准备

    • 推荐 node.js >= 16.20.0
    • node.js 安装教程

    # 下载

    # gitee
    git clone https://gitee.com/dromara/electron-egg.git
    
    # github
    git clone https://github.com/dromara/electron-egg.git
    

    # 安装

    请使用 npm,不推荐 yarn、cnpm ,有问题先看文档:常见问题

      # 进入目录 ./electron-egg/
      npm install
      
      # 如果还是提示 electron 没安装,进入 node_modules/electron 目录下,再npm install
      
      # 解决幽灵依赖
      npm config set node-linker hoisted
      
      # 进入目录 ./electron-egg/
      pnpm install
      
      // Make sure to add code blocks to your code group

      如果下载慢:设置国内镜像源(加速)

      在根目录添加 .npmrc 文件,添加如下内容

      registry=https://registry.npmmirror.com/
      disturl=https://registry.npmmirror.com/-/binary/node
      electron_mirror=https://npmmirror.com/mirrors/electron/
      electron-builder-binaries_mirror=https://registry.npmmirror.com/-/binary/electron-builder-binaries/
      

      # 运行项目

      查看教程:快速开始

      # 生成软件

      查看教程:构建可执行程序

      # Demo

      框架集成了许多功能demo示例,方便开发者快速入门。查看demo文档

      # window 7 系统

      微软已经停止对 win7系统支持。需要支持win7的,请使用以下开发环境

      electron <= 22版本
      node.js <= 16版本
      electron-builder <= 23.6.0
      

      # 框架长期使用的历史版本

      如果你不了解 node.js 与 electron 的依赖关系,请使用如下版本。

      node.js: v16.20.0 
      electron: v21.4.4 
      better-sqlite3: v8.6.0 (可选)
      
      node.js: v14.21.1
      electron: v13.6.9
      better-sqlite3: v7.6.0 (可选)
      
      node.js: v12.22.0
      electron: v12.2.3 
      better-sqlite3: v7.6.0 (可选)
      
      上次更新: 2025/06/06, 07:21:49
      EE框架是什么?
      第三方使用

      ← EE框架是什么? 第三方使用→

      Theme by Vdoing | Copyright © 2023-2025 哆啦好梦 | 京ICP备15041380号-2
      • 跟随系统
      • 浅色模式
      • 深色模式
      • 阅读模式
      ×