question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DIfferent Node.js version, DLL Initializing

See original GitHub issue

Hi fyears,

I’m following your tutorial after so many days of trying to get along with tkinter. In a way it feels weird to have two backends running seperatly (node and python), but in my case this is just what i need, because i build my framework, which I want to use, in python.

Unfortunately I’m facing an issue when running npm start. The window shows up, already showing the DOM like I want to look like, but the console opens up with the following error:

ELECTRON_ASAR.js:173
Uncaught Error: The module '\\?\C:\Users\Thomas\Projekte\merge-documents\settings\node_modules\zerorpc\node_modules\zeromq\build\Release\zmq.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 50. This version of Node.js requires
NODE_MODULE_VERSION 53. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or`npm install`).

[...]

So I run npm rebuild and try it again. Now the console shows the following error:

Uncaught Error: Eine DLL-Initialisierungsroutine ist fehlgeschlagen.
\\?\C:\Users\Thomas\Projekte\merge-documents\settings\node_modules\zerorpc\node_modules\zeromq\build\Release\zmq.node
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:173:20)
    at Object.Module._extensions..node (module.js:598:18)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:173:20)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\Thomas\Projekte\merge-documents\settings\node_modules\zerorpc\node_modules\zeromq\lib\index.js:6:11)
    at Object.<anonymous> (C:\Users\Thomas\Projekte\merge-documents\settings\node_modules\zerorpc\node_modules\zeromq\lib\index.js:839:3)

The german sentence of the uncaught error means “A DLL initialization routine failed” 😉

Thanks in advance, Thomas

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
uiktiomasfelizcommented, Jun 6, 2017

@draperjames i just answered my solution for the same error here

0reactions
Chaostecommented, Jun 25, 2017

Thanks your command fixed my problem: npm rebuild zeromq --runtime=electron --target=1.6.2

Read more comments on GitHub >

github_iconTop Results From Across the Web

DLL initialization routine failed · Issue #1708 · nodejs/help
dll when I built Node.js. I was able to successfully build an addon with that using node-gyp, but when I tried to run...
Read more >
Error: A dynamic link library (DLL) initialization routine failed ...
1 the command ran fine but I still got same error. UPDATE 2: inside the console, I clicked in the javascript source code...
Read more >
n - npm
Interactively Manage All Your Node Versions. Latest version: 9.0.1, last published: 2 months ago. Start using n in your project by running ...
Read more >
Download & Update Node.js to the Latest Version! Node v19 ...
Direct download links to update to the latest Node.js versions: Node v19.0.0 / LTS v16.18.0.
Read more >
Node.js v19.3.0 Documentation
If the error is of a different type, or if the error parameter is undefined, the error is propagated back to the caller....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found