Answer Question Site

Get Solution Question and Answer Site


Lo A Dynamic Link Library Dll Initialization Routine Failed, Security Check

I”ve successfully built node.js addon, which works well with Node on Windows. Now, I want to create a Windows app using Electron. When loading the module in HTML file, I got the error:

var dbr = require(“./build/Release/dbr”);

Something wrong with ATOM_SHELL_ASAR.js.

Đang xem: A dynamic link library dll initialization routine failed

The issue only occurred on Windows. On Linux and Mac, it worked well.

How can I fix it?


I”m using Electron 2 version and have the same error with another module.

I solved this problem by this advise on Electron page: To ensure your native dependencies are always matched electron version, simply add script “postinstall”: “electron-builder install-app-deps” to your package.json.

Xem thêm: Best Finish For Birdseye Maple ? Finishing Birds Eye Maple

And then I changed: “postinstall”: “electron-builder install-app-deps && npm run lint:fix”. Then npm run postinstall.

Thanks for contributing an answer to Stack Overflow!

Please be sure to answer the question. Provide details and share your research!

But avoid …

Asking for help, clarification, or responding to other answers.Making statements based on opinion; back them up with references or personal experience.

Xem thêm: Disable Html5 Youtube Firefox Browser, Disable Html5 Autoplay

To learn more, see our tips on writing great answers.

Post Your Answer Discard

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you’re looking for? Browse other questions tagged javascript node.js electron atom-editor or ask your own question.

Error: A dynamic link library (DLL) initialization routine failed on electron but it’s fine on node js
site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev2021.8.18.40012

Your privacy

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

See more articles in category: Library


Related Posts