Giter Site home page Giter Site logo

Comments (15)

manuelbieh avatar manuelbieh commented on July 24, 2024 8

I ran electron-rebuild 20x now with different options, I just don't get it working on Win 10 (Pro), with Fall Creators Update and Electron 1.7.8 / 1.8.1. Keep getting the A dynamic link library (DLL) initialization routine failed error no matter what I do ... My node version is 8.9.0.

from node-keytar.

gengjiawen avatar gengjiawen commented on July 24, 2024 3

I run into this problem with Node 8.4.0, Node 7 is fine.

from node-keytar.

invokablegmbh avatar invokablegmbh commented on July 24, 2024 2

do you have electron-rebuild installed?
try to issue "npm install electron-rebuild" before executing "./node_modules/.bin/electron-rebuild"

from node-keytar.

fcapolini avatar fcapolini commented on July 24, 2024 2

I am also having this issue and am not clear from this thread how exactly to fix it, can someone post a step by step on how to fix with commands included?

Thanks

I had the same problem and published a little how-to here.

Hope this helps

from node-keytar.

roqvist avatar roqvist commented on July 24, 2024 1

I tried everything in this thread, rebuilding with electron-rebuild doesn't seem to help. Still getting the DLL initialization routine failed error.

Did anyone get this working on Windows 10?

from node-keytar.

McPo avatar McPo commented on July 24, 2024

Despite having the same Node (6.1.0) version as Electron (1.2.3). I had to install electron-rebuild and execute it on post install. I also was using electron-builder which uses two separate package.json files.

"scripts": {
"postinstall": "cd ../ && "./node_modules/.bin/electron-rebuild" -m ./src/node_modules/ -w keytar -p -f"
}

-f forces a rebuild, -p applies a relevant pre-gyp-fix and m specifies to use the inner node_modules, while obtaining the electron-prebuilt from the outer node_modules.

Still not sure why this is required though.

from node-keytar.

gitmitch avatar gitmitch commented on July 24, 2024

@McPo I'm thinking about using node-keytar for my Electron app, but this may be a blocker if I understand this issue correctly. To employ the workaround you found, it sounds like my Windows user would need Visual Studio installed because electron-rebuild would be run as the last step of the installer on their machine. Am I understanding this issue correctly?

from node-keytar.

McPo avatar McPo commented on July 24, 2024

I had to use electron-rebuild to get it working in Windows 10 (And I believe electron-rebuild requires Visual Studios).

However when I built it on Windows 10 it worked fine on Windows 7. So you could just rebuild the module and then store the binaries in another folder and have a post-install hook to copy your prebuilt binary over the one that its shipped with.

You might also be able to get away with just the msbuild tools, and if you need a copy of Windows to do the initial compilation. These VMs from Microsoft work well https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/

Basically, it shouldn't be a blocker, just an initial inconvenience, and the tools look well across the platforms.

from node-keytar.

endercrest avatar endercrest commented on July 24, 2024

Just wanted to confirm, the electron-rebuild solves the problem with windows 10.

from node-keytar.

kspearrin avatar kspearrin commented on July 24, 2024

@manuelbieh Did you ever get this working? I'm having same issue. ./node_modules/.bin/electron-rebuild -w keytar -p -f doesn't seem to work.

from node-keytar.

RyanRizzo96 avatar RyanRizzo96 commented on July 24, 2024

@jarmediagmbh, this solved my problem! Thanks! 💯

from node-keytar.

TomasHubelbauer avatar TomasHubelbauer commented on July 24, 2024

For the record I did also struggle with statically referencing the dependency on Windows 10 and eventually just gave up to try dynamically referencing it, but also ran into issues with that (#106).

from node-keytar.

H3npi avatar H3npi commented on July 24, 2024

When i run electron-rebuild the dev version works, however when i pack the application using electron-packager it is not working.

from node-keytar.

m-o-leary avatar m-o-leary commented on July 24, 2024

I am also having this issue and am not clear from this thread how exactly to fix it, can someone post a step by step on how to fix with commands included?

Thanks

from node-keytar.

shiftkey avatar shiftkey commented on July 24, 2024

Closing this out because I think all that we can do currently is:

  • publish prebuild targets that support as much as possible (currently ever major version from Node 6 to Node 12 and Electron 1.6 to Electron 5) to save people building native modules when unnecessary
  • continue to point to the upstream Electron docs about native Node modules and electron-rebuild docs and figure out how to make that experience better, for users who are not able to leverage prebuild

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.