Error: The module '/path/to/native/module.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION $XYZ. This version of Node.js requires
NODE_MODULE_VERSION $ABC. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`)

 上述问题的解决方法在electron官网提供了:

https://www.electronjs.org/docs/tutorial/using-native-node-modules

相关文章:

  • 2022-03-04
  • 2022-12-23
  • 2022-12-23
  • 2019-02-22
  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-29
  • 2021-10-20
  • 2021-09-10
  • 2021-08-17
  • 2022-12-23
  • 2021-07-19
  • 2022-12-23
相关资源
相似解决方案