2016-03-16 34 views
6

我已经成功构建了node.js插件,它可以在Windows上适用于Node。 现在,我想创建一个使用Electron的Windows应用程序。当加载在HTML文件中的模块,我得到了错误:电子未捕获错误:动态链接库(DLL)初始化例程失败

var dbr = require('./build/Release/dbr'); 

enter image description here

蹊跷ATOM_SHELL_ASAR.jsenter image description here

该问题仅在Windows上发生。在Linux和Mac上,它运行良好。

我该如何解决?

谢谢!

回答

8

您需要重建Electron的本地Node插件,the steps are outlined in the docs

+0

对于Windows?它在Linux上工作,无需重建。 – yushulx

+0

它也适用于Mac OS X,无需重建。 – yushulx

+0

我已经重建了Windows的模块,现在它正在工作。你能否解释为什么我不需要重建Linux和Mac的模块?谢谢。 – yushulx

相关问题