Comments (15)
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.
I run into this problem with Node 8.4.0, Node 7 is fine.
from node-keytar.
do you have electron-rebuild installed?
try to issue "npm install electron-rebuild
" before executing "./node_modules/.bin/electron-rebuild
"
from node-keytar.
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.
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.
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.
@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.
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.
Just wanted to confirm, the electron-rebuild solves the problem with windows 10.
from node-keytar.
@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.
@jarmediagmbh, this solved my problem! Thanks! 💯
from node-keytar.
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.
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.
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.
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 leverageprebuild
from node-keytar.
Related Issues (20)
- Prebuild problem on Windows HOT 1
- Not being able to install on Windows. v8.h missing
- electron-rebuild fails after updating keytar to 7.7.0
- WSL Support
- Upgrade dependencies' major versions HOT 7
- https://www.instagram.com/p/CaAP2_VsEFp/?utm_medium=copy_linkc
- [win] handle different value for cred.Persist = CRED_PERSIST_ENTERPRISE;
- [Windows] Old credential comes back after current one is deleted HOT 3
- Keytar installation fails on Alpine Linux (Docker image) HOT 1
- Switch to prebuildify & node-gyp-build HOT 2
- Proposal: Support buffers for binary keychain data
- Not attempting prebuilt install
- setPassword error
- Add a new setPasswordDescription method
- Opt out from having the service name implicitly be concatenated with the account name on windows.
- Setting a password throws strange Error: �ڴ���Դ���㣬�����������” HOT 2
- `FindCredentials` call on Linux without unlocking the key store crashes
- Fails to install on Windows ARM
- Node
- Farewell, my dear Keytar
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-keytar.