balena-io-modules / drivelist

List all connected drives in your computer, in all major operating systems
Apache License 2.0
242 stars 90 forks source link

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

Closed shanetorres closed 4 years ago

shanetorres commented 4 years ago

Trying to use drivelist in a NW.js project.

Using drivelist version 8.0.9 and NW.js version 0.35.4 I keep getting the following error: image

This is the code I am using const drivelist = require('drivelist'); drivelist.list().then( drives => console.log(drives), err => console.error(err) )

Anyone have any ideas? I've tried a lot of different things like installing nw-gyp and configuring NW.js to use native node modules but nothing is working. I really need this module to work correctly for my project. Any help is much appreciated.

Edit: I'm on windows 10 64 bit

lurch commented 4 years ago

Duplicate of #226 ?