我在使用npm安装electron-edge-js时出现了以下问题:
Error: The edge module has not been pre-compiled for Electron version 15.0.0 . You must build a custom
version of edge.node. Please refer to https://github.com/agracio/edge-js for building instructions.
at checkForPreCompiled (D:\projects\electron-vue\WiFiDockManager\node_modules\electron-edge-js\lib\edge.js:19:11)
at Object.<anonymous> (D:\projects\electron-vue\WiFiDockManager\node_modules\electron-edge-js\lib\edge.js:31:18)
at Module._compile (node:internal/modules/cjs/loader:1110:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1140:10)
at Module.load (node:internal/modules/cjs/loader:982:32)
at Module._load (node:internal/modules/cjs/loader:823:12)
at Function.c._load (node:electron/js2c/a
解决npm安装electron-edge-js时的版本冲突问题

在尝试使用npm安装electron-edge-js时遇到了错误,提示该模块未针对Electron版本15.0.0预编译,需要自建版本。遵循GitHub上的指示,将 Electron 版本降至13后,问题成功解决。
最低0.47元/天 解锁文章
1612





