Electron Uncaught Error: A dynamic link library (DLL) initialization routine failed

后端 未结 2 1936
终归单人心
终归单人心 2020-12-29 06:58

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 g

相关标签:
2条回答
  • 2020-12-29 07:42

    You need to rebuild your native Node addon for Electron, the steps are outlined in the docs.

    0 讨论(0)
  • 2020-12-29 08:02

    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.

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

    0 讨论(0)
提交回复
热议问题