Node Module (robotjs) was compiled against a different Node.js version

So I’m trying to build a simple VS Code extension but after I finally found the right modul to use I can’t get it to run corectly.

After pressing F5 to test the extension i just get the message:

Activating extension 'undefined_publisher.vs-code-media-player' failed: The module '\? 
c:UsersmyNameGoogle Drive3_PersoenlichProgrammingVS Code Extensionsvs-code- 
media-playernode_modulesrobotjsbuildReleaserobotjs.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 83. This version of Node.js requires
NODE_MODULE_VERSION 89. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`)..

I tried:

  • npm rebuild
  • uprgading npm
  • downgrading npm
  • installing another module version
  • create a new project
  • updating node

But nothing worked so far.

Thanks in advance for your help.