Has anyone gotten node modules to work properly on the Windows version of RPG maker?
I have been banging my head against the wall trying to get a node module (Vosk: https://www.npmjs.com/package/vosk) to work.
The good news is that on Mac and Linux, everything is working perfectly per @MaowImpl instructions here.
The bad news is that the node module will not work on Windows no matter what I try to do. I have been going insane trying to get to the bottom of this lol. I get this error:
I think this is related to a general issue that nw.js has on windows with native node.js modules. I followed the steps from the NW.js documentation to attempt to resolve them, but unfortunately it didn't seem to resolve.
Has anyone else had this issue (or similar issues) with trying to use node modules on windows? If you do have node modules working, would anyone be kind enough to try to help me by installing vosk on windows to see if you get the same issues?
Things I have tried:
NW.js version: 82.0
Operating system: Windows 11 (working okay on Mac Sonoma minus mic permission, working perfectly on Linux Mint)
Visual Studio version: 2022
I have been banging my head against the wall trying to get a node module (Vosk: https://www.npmjs.com/package/vosk) to work.
The good news is that on Mac and Linux, everything is working perfectly per @MaowImpl instructions here.
The bad news is that the node module will not work on Windows no matter what I try to do. I have been going insane trying to get to the bottom of this lol. I get this error:
Code:
Uncaught Error: A dynamic link library (DLL) initialization routine failed.
\\?\C:\Users\(my name)\OneDrive\Desktop\npmNQ1\npmNQ1\node_modules\ref-napi\prebuilds\win32-x64\node.napi.node
I think this is related to a general issue that nw.js has on windows with native node.js modules. I followed the steps from the NW.js documentation to attempt to resolve them, but unfortunately it didn't seem to resolve.
Has anyone else had this issue (or similar issues) with trying to use node modules on windows? If you do have node modules working, would anyone be kind enough to try to help me by installing vosk on windows to see if you get the same issues?
Things I have tried:
- Confirmed that both my system's node.js and nw.js's node version are the same (20.7.0).
- Using nw-gyp to force compatibility (it was a nightmare to try to get working on windows. I did get it to work on linux using a lower version of node- 18.12.1 I believe, but because it's a lower node version I'm not sure it worked)
- Building the relevant module (ref-napi) from source. This resulted in my game immediately shutting down upon launch lol.
- Crying
NW.js version: 82.0
Operating system: Windows 11 (working okay on Mac Sonoma minus mic permission, working perfectly on Linux Mint)
Visual Studio version: 2022