https://nodejs.org/dist/index.json Electron查询网站 https://releases.electronjs.org/releases.json 2.通过Abi方式查询 在VS Code新建js文件 constnodeAbi=require('node-abi')leta=nodeAbi.getAbi('4.0.2','electron')//let b = nodeAbi.getAbi('8.5.5', 'electron')letb=nodeAbi.getAbi('9.2.0...
NODE_MODULE_VERSION指的是Node.js的ABI(application binary interface)版本号,用来确定编译Node.js的C++库版本,以确定是否可以直接加载而不需重新编译。在早期版本中其作为一位十六进制来储存,而现在表示为一个整数。 查看Electron版本文档库中,发现有这么一句话:Change the NODE_MODULE_VERSION to 69 问题原因终于找...
error:: Error: The module'<project>/node_modules/electron/node_modules/ref/build/Release/binding.node'was compiled against a different Node.js version using NODE_MODULE_VERSION70. This version of Node.js requires NODE_MODULE_VERSION73. Please try re-compiling or re-installing the module (forin...
NODE_MODULE_VERSION指的是Node.js的ABI(application binary interface)版本号,用来确定编译Node.js的C++库版本,以确定是否 可以直接加载而不需重新编译。在早期版本中其作为一位十六进制来储存,而现在表示为一个整数。 查看Electron版本文档库中,发现有这么一句话:Change the NODE_MODULE_VERSION to 69 问题原因终于...
使用electron项目经常会遇到NODE_MODULE_VERSION的错误,如下: error::Error:The module'<project>/node_modules/electron/node_modules/ref/build/Release/binding.node'was compiled against a different Node.js version usingNODE_MODULE_VERSION57.This versionofNode.js requiresNODE_MODULE_VERSION54.Pleasetryre-com...
Docker image node:12.0.0, but I think the problem is common on all platforms. Last Known Working Electron version:: N/A but the pluginedge-jsworks without any manuel recompilation with Node 10.x. Expected Behavior Compiling theedge-jsnative module with Node 12.0.0 works and produce a modu...
我删除了 node_modules 并重新安装了所有模块大约 6 次,显然删除 node_modules 并安装不是解决方案,所以我需要社区的帮助来找到这个错误。 包.json {"name":"ElectronULTIMA","version":"1.0.0","description":"electron apps","main":"main.js","scripts":{"start":"electron .","babel":"babel","web...
谷歌了一番,最后查明了原因 ,官网所述:Electron 支持原生的 Node 模块,但由于 Electron 非常有可能使用一个与您的系统上所安装的 Node 不同的 V8 引擎,您所使用的模块将需要被重新编译。 说人话:(我理解的是nodejsNODE_MODULE_VERSION 和electron内置的nodejs的NODE_MODULE_VERSION 不一致,导致了原生模块无法使...
"electron-builder": "^20.38.5", Windows I can't figure this out node_modules\sqlite3\lib\binding\electron-v4.0-win32-x64\node_sqlite3.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 64. This version of No...
1. 安全性考虑:Electron的渲染进程运行在沙箱环境中,预加载的脚本(preload)可以访问Node.js的API,这...