Giter Site home page Giter Site logo

Comments (16)

jgknott avatar jgknott commented on July 4, 2024 22

@BinaryMuse that solved it! Thank you!
Steps for mac:
npm install --save-dev electron-rebuild
./node_modules/.bin/electron-rebuild
I got some errors, on some packages but the keytar worked fine and now i'm able to run the app.

from node-keytar.

jgknott avatar jgknott commented on July 4, 2024 6

npm rebuild didn't work for me.

Here's the error I'm getting:

keytar.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 48. This version of Node.js requires
NODE_MODULE_VERSION 51. 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:173:20)
    at Object.Module._extensions..node (module.js:598:18)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:173:20)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at /Users/jknott/Dropbox (Personal)/dev/ottter/desktop/node_modules/keytar/lib/keytar.js:1:161
    at Object.<anonymous> (/project/node_modules/keytar/lib/keytar.js:55:2)

I'm on node 6.10 and npm 4.2.0

from node-keytar.

stuardcg avatar stuardcg commented on July 4, 2024 5

delete node_module and run npm i

from node-keytar.

BinaryMuse avatar BinaryMuse commented on July 4, 2024 2

Unless I'm mistaken, npm rebuild will just rebuild the module against Node's version, not Electron's. You'll need to use one of the methods in the Using Native Node Modules documentation.

from node-keytar.

massi67 avatar massi67 commented on July 4, 2024 2

Can somebody send steps to resolve issue in Windows?

from node-keytar.

jgknott avatar jgknott commented on July 4, 2024

Having the same issue.

from node-keytar.

shiftkey avatar shiftkey commented on July 4, 2024

@alexcroox @jgknott does an npm rebuild fix the issue? If not, more information about your setup and steps to reproduce this is necessary...

from node-keytar.

shiftkey avatar shiftkey commented on July 4, 2024

I'm on node 6.10 and npm 4.2.0

These seem recent enough. Any thoughts @BinaryMuse on why they might still be seeing this error?

from node-keytar.

alexcroox avatar alexcroox commented on July 4, 2024

I'm running node 7.6.0 and npm 4.1.2

from node-keytar.

alexcroox avatar alexcroox commented on July 4, 2024

Does this mean the dev environment needs to be setup on each target OS and the module rebuilt on each? Or does a rebuild once on Mac cover all OS's?

from node-keytar.

shiftkey avatar shiftkey commented on July 4, 2024

Does this mean the dev environment needs to be setup on each target OS and the module rebuilt on each?

@alexcroox yes, because the native toolchain is OS-dependent

from node-keytar.

liowmei avatar liowmei commented on July 4, 2024

Hi, i am new in using the firmware and i encounter the problem as below :
The module '\?\C:\Users\user.atom\packages\Pymakr\precompiles\serialport-win\build\Release\serialport.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 49. This version of Node.js requires
NODE_MODULE_VERSION 53. Please try re-compiling or re-installing
the module (for instance, using npm rebuild ornpm install).

May i know how can i fix it? Thanks

from node-keytar.

CorentinGC avatar CorentinGC commented on July 4, 2024

@liowmei Read the comment of @BinaryMuse and @jgknott ;)
I am using serialport too, and this worked like a charm !

from node-keytar.

Riz-waan avatar Riz-waan commented on July 4, 2024

@massi67 did you try what @Arthaclarius said?

from node-keytar.

mohamedbrahimi avatar mohamedbrahimi commented on July 4, 2024

the same issue !, please any suggestion

from node-keytar.

BinaryMuse avatar BinaryMuse commented on July 4, 2024

Hi, folks,

Please see the comment that I posted earlier. You'll need to follow the instructions on the Using Native Node Modules page on the Electron site. I personally use and recommend the strategy described in Installing modules and rebuilding for Electron, which describes how to fix this problem with the electron-rebuild package.

Since the original issue is solved, I'm going to lock this issue. If you have a different problem, or have tried the above steps and it doesn't work, then please create a new issue and we can work to resolve it separately.

from node-keytar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.