octalmage / robotjs

Node.js Desktop Automation.
http://robotjs.io
MIT License
12.4k stars 970 forks source link

Installing for nw.js - "A dynamic link library (DLL) initialization routine failed." #749

Open DavidAccola opened 1 year ago

DavidAccola commented 1 year ago

I'm trying to use robotjs in a nw.js project. I've run

npm install robotjs

but when I require robotjs in my app (var robotjs = require("robotjs")) I get a DLL initialization error.

node:internal/modules/cjs/loader:1365 Uncaught Error: A dynamic link library (DLL) initialization routine failed.
\\?\C:\mypath\node_modules\robotjs\build\Release\robotjs.node
    at Module._extensions..node (node:internal/modules/cjs/loader:1365:18)
    at Module.load (node:internal/modules/cjs/loader:1116:32)
    at Module._load (node:internal/modules/cjs/loader:963:12)
    at Module.require (node:internal/modules/cjs/loader:1140:19)
    at require (node:internal/modules/helpers:128:18)
    at Object.<anonymous>