Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

NODE_MODULE_VERSION 85 required #139

Open
XNinety9 opened this issue Jan 29, 2021 · 1 comment
Open

NODE_MODULE_VERSION 85 required #139

XNinety9 opened this issue Jan 29, 2021 · 1 comment

Comments

@XNinety9
Copy link

XNinety9 commented Jan 29, 2021

Description

Can't add spellchecker to project because it requires NODE_MODULE_VERSION 85.

When I add it to my project and start the whole thing, I get this message:

App threw an error during load
Error: The module '/Users/user/Documents/Repositories/project/node_modules/spellchecker/build/Release/spellchecker.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 83. This version of Node.js requires
NODE_MODULE_VERSION 85. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).

I tried:

  • many versions of Node, but according to this list NODE_MODULE_VERSION 85 does not exist at all.
  • switching from yarn to npm
  • npm rebuild

Nothing works :(

Can someone help?

@Aerijo
Copy link

Aerijo commented Jan 29, 2021

Electron makes changes to node that result in incompatibilities. IIRC, they use a different module version for this reason. But in general, it is unlikely (and fragile) that the node version in use by your app is the same as the one being used to install dependencies.

To fix your error, you need to recompile the module for the version of Electron your app will be running. One way is to configure npm with the appropriate target information. Another is to install and run electron-rebuild, which will configure it for you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants