【问题标题】:My sqlite3 rebuild generates the electron-v1.4-win32-x64 and require asks for electron-v1.4-win32-ia32 . Does any have idea?我的 sqlite3 重建生成 electron-v1.4-win32-x64 并要求要求 electron-v1.4-win32-ia32 。有没有人有想法?
【发布时间】:2017-10-11 22:55:03
【问题描述】:

这是app的snap和编译好的node文件的snap

【问题讨论】:

    标签: sqlite electron electron-builder


    【解决方案1】:

    我得到了解决方案。

    因为我们在 64 位架构中使用的是 32 位版本的 nodejs,所以构建错误。

    您可以使用该流程来验证您的 nodejs 的拱门。

    c:\> node
    > process
    

    搜索 target_arch

    如果那里写了 32 比转到 nodejs.org 并下载 nodejs 的 64 位安装程序。

    接下来的步骤

    1. 删除 node_modules 文件夹
    2. 打开命令提示符(以管理员身份运行)
    3. 检查节点进程架构类型是否为 x64,如图所示。
    4. 运行 npm 安装

    我的 package.json 文件

      {
      "name": "sqlite",
      "version": "1.0.0",
      "description": "This is the tutorial for the sqllite",
      "main": "index.js",
      "scripts": {
        "test": "echo \"Error: no test specified\" && exit 1",
        "start": "electron .",
        "rebuild": "electron-rebuild  -f -w  sqlite3"
      },
      "author": "",
      "license": "ISC",
      "dependencies": {
        "electron-prebuilt": "^1.4.13",
        "sqlite3": "^3.1.8"
      },
      "devDependencies": {
        "electron-rebuild": "^1.5.10"
      }
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-06-24
      • 2013-09-14
      • 2020-12-27
      • 2016-06-19
      • 1970-01-01
      • 2021-05-26
      • 1970-01-01
      • 2018-01-01
      相关资源
      最近更新 更多