MadLittleMods / node-usb-detection

List USB devices in system and detect changes on them.
MIT License
371 stars 114 forks source link

NODE_MODULE_VERSION 93. This version of Node.js requires NODE_MODULE_VERSION 83. #160

Closed Diegoecoms closed 2 years ago

Diegoecoms commented 2 years ago

This error keeps coming up constantly and I can't find any solution, thanks for your help!

was compiled against a different Node.js version using
NODE_MODULE_VERSION 93. This version of Node.js requires
NODE_MODULE_VERSION 83. Please try re-compiling or re-installing
the module (for instance, using npm rebuild or npm install).
MadLittleMods commented 2 years ago

It sounds like prebuild is choosing the wrong binary for you. There are v83 binaries available so I'm not sure why it would choose v93, https://github.com/MadLittleMods/node-usb-detection/releases/tag/v4.13.0

  1. What OS are you running on?
  2. What do you see when you run node --version?
  3. Delete node_modules/usb-detection, then run npm install usb-detection, what is the full console output?
Diegoecoms commented 2 years ago

I'm a total beginner, first of all thanks for the help, sorry I hardly understand anything about programming, I'm on windows 10, what exactly do you mean by What do you see when you run node --version? And what do you mean by full console output? sorry for the bother and thank you very much for the help

MadLittleMods commented 2 years ago

How are you encountering this error? Can you share a screenshot so I have more context on what you're doing?

The console/terminal is what you type commands in. I assume you're making a Node.js application and running the app.

Diegoecoms commented 2 years ago

image

Diegoecoms commented 2 years ago

Thank you very much for the help, really.

MadLittleMods commented 2 years ago

The error looks like it's a problem with the canvas library, not usb-detection.

Maybe you got here from Google but that's a completely different project and you should ask for help there or whatever support channel they have: https://github.com/Automattic/node-canvas

c0rrell commented 1 year ago

Having the same issue as you, @Diegoecoms

Did you find a way to fix it? 🤔