Fork me on GitHub

electron导入addon时出现node版本不匹配的

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

posted @ 2020-09-13 21:10  webberg  阅读(1471)  评论(0编辑  收藏  举报