电子未捕获错误:动态链接库(DLL)初始化例程失败 [英] Electron Uncaught Error: A dynamic link library (DLL) initialization routine failed

查看:279
本文介绍了电子未捕获错误:动态链接库(DLL)初始化例程失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已成功构建了node.js插件,该插件适用于Windows上的Node。
现在,我想使用Electron创建一个Windows应用程序。在HTML文件中加载模块时,我收到错误:

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');

ATOM_SHELL_ASAR.js 有问题。

Something wrong with ATOM_SHELL_ASAR.js.

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

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

我该如何解决?

谢谢!

推荐答案

您需要重建本机Node插件对于Electron,文档中列出了步骤

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

这篇关于电子未捕获错误:动态链接库(DLL)初始化例程失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆