Print using node-printer module in Windows

I’m trying to use the node-printer in an electron application in Windows, but I get this error when trying to import the module

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

Outside electron the node-printer module works fine for my examples.

Can I have some advice on how to solve this?

Native modules must be rebuilt specifically for the Electron version you’re using, as documented here.

1 Like

I tried the easy way:

# On Windows if you have trouble, try:

I used:


But I don’t get any feedback from the command. I guess it did the job, but when I execute electron . I get the same error.