Skip to content
This repository was archived by the owner on Dec 1, 2018. It is now read-only.
This repository was archived by the owner on Dec 1, 2018. It is now read-only.

simple-app / neon-bindings only works through electron version 1.6.2 on windows #3

@heroes-coding

Description

@heroes-coding

I couldn't get electron to work with neon-bindings at all, except for the sample-app example, and finally figured out that the simple-app example itself will not work for any version of Electron greater than 1.6.2 (the currently specified version in the package.json file). The most recent version it works with is 1.6.17, and the highest is 1.6.2. I'm not sure if this is only the case in Windows.

If I substitute any later version of electron into the simple-app package.json, I get an error like the following:

Error: The module '\\?\C:\examples\guides\electron-apps\simple-app\node_modules\neon-hello\native\index.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 53. This version of Node.js requires
NODE_MODULE_VERSION 57. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:172:20)
    at Object.Module._extensions..node (module.js:598:18)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:172:20)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object. (C:\examples\guides\electron-apps\simple-app\node_modules\neon-hello\lib\index.js:1:168)
    at Object. (C:\examples\guides\electron-apps\simple-app\node_modules\neon-hello\lib\index.js:5:3)
error: The module '\\?\C:\examples\guides\electron-apps\simple-app\node_modules\neon-hello\native\index.node'was compiled against a different Node.js version usingNODE_MODULE_VERSION 53. This version of Node.js requiresNODE_MODULE_VERSION 57. Please try re-compiling or re-installingthe module (for instance, using `npm rebuild` or `npm install`).    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:172:20)    at Object.Module._extensions..node (module.js:598:18)    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:172:20)    at Module.load (module.js:503:32)    at tryModuleLoad (module.js:466:12)    at Function.Module._load (module.js:458:3)    at Module.require (module.js:513:17)    at require (internal/module.js:11:18)    at Object. (C:\examples\guides\electron-apps\simple-app\node_modules\neon-hello\lib\index.js:1:168)    at Object. (C:\examples\guides\electron-apps\simple-app\node_modules\neon-hello\lib\index.js:5:3)

With version 57 being the same or lower depending on the Electron build specified.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions