EranVazana / Arctis-OLED-Battery-Indicator

Detailed information about your headset battery on the OLED screen.
15 stars 5 forks source link

Error: Module did not self register #6

Open dudemanpersonguy opened 3 years ago

dudemanpersonguy commented 3 years ago

11/03/2020 18:05:44 - Error: Module did not self-register: '\?\C:\Downloads\Arctis-OLED-Battery-Indicator-master\node_modules\node-hid\build\Release\HID.node'. ##########

Has occurred when using CMD ran as administrator using "node Main.js" and attempting to run the "Run.bat"

p4ck3ts3nd3r commented 3 years ago

11/03/2020 18:05:44 - Error: Module did not self-register: '\?\C:\Downloads\Arctis-OLED-Battery-Indicator-master\node_modules\node-hid\build\Release\HID.node'. ##########

Has occurred when using CMD ran as administrator using "node Main.js" and attempting to run the "Run.bat"

I got the same...

Choruptian commented 3 years ago

This can be resolved by reinstalling the node packages. I ran:

npm init npm ci

to accomplish this.

Garret-Gallant commented 3 years ago

Detailed resolution (Hope to save someone else the headache)

-Run cmd as admin -Navigate to your file system inside of cmd "cd C:/Arctis-OLED-Battery-Indicator" or whatever your file destination was (mine was C:\Users\Garret\OneDrive\Desktop\Garret's stuff\SS Batt. Indicator after extracting to my own destination) -run npm update (wait for operation to finish, should show you found "x" vulnerabities and if they were fixed) -run "npm audit fix" just to be safe -run the .bat file or run the command "START /min /b node Main.js" -Take a look at your OLED screen

Hope this helped you!

image

Dagaznau commented 1 year ago

Unfortunately this fix didnt resolve the issue for me. It just deleted a bunch of folders (image shows the ones that are left) and after that the installing process didnt work at all. I didnt even get a new entry in the log file. Hope this is still supported btw. folders left

cmd

Garret-Gallant commented 1 year ago

It seems running the audit fix removed some files from your repo, and that error is stating that lisHeadsets.js and Main.js are no longer present. I would redownload a fresh zip and attempt to run the "START /min /b node Main.js" command again before attempting to audit, keep in touch on this forum I am happy to help you get resolved!

Dagaznau commented 1 year ago

Thanks for the answer. Same issue if I redownloaded and used "START /min /b node Main.js" first. Also Main.js and ListHeadsets.js are still there. The screenshot I sent was of the node_modules folder.

NoobKitten commented 1 year ago

Hi :) I tried all the troubleshooting steps as shown above but it still throws the MODULE_NOT_FOUND error.

I can provide a screenshot but it basically looks like the one posted above. I installed Node-JS for this, downloded the zip file, put it in its own folder, tried to run the bat, this gives the error log 01/02/2023 17:53:08 - Error: Module did not self-register: '\?\C:\Program Files\SteelSeries\arctis\Arctis-OLED-Battery-Indicator-master\node_modules\node-hid\build\Release\HID.node'. ########## Then tried the fix posted on Apr 5, 2021 and this leads me to exactly the same error.

tarres commented 1 year ago

I manually installed all the missing packages after getting the module did not self rigster error. Now I'm stuck at error creating native callback.

Garret-Gallant commented 1 year ago

To confirm with folks having issues here, please send the headset you are using; the keyboard you are using, and whether or not you have SteelSeries engine installed to your machine on the same drive as the files you extracted to run the relevant .bat file. Secondly please confirm the operating system you are on (Windows 10, OSX, Linux, etc.)

I am a junior developer, and while I may not be extensively familiar with this particular app, I will help where I can!