Tag: gyp edgejs

错误:指定的模块找不到

我试图使用edge.js来执行一些.NET代码,以在电子应用程序的窗口上打印。 我已经试过电子边缘 ,我也尝试手动build立edge.js模块针对Electron按照电子文档中的说明 ,但是当我尝试在封装的应用程序中使用边缘时,我不断收到以下错误: Error: The specified module could not be found. \\?\C:\path\to\app\app-1.0.0\resources\app.asar.unpacked\node_modules\edge\lib\native\win32\x64\6.5.0\edge_nativeclr.node at Error (native) at process.module.(anonymous function) (ELECTRON_ASAR.js:178:20) at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:178:20) at Object.Module._extensions..node (module.js:583:18) at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:192:18) at Module.load (module.js:473:32) at tryModuleLoad (module.js:432:12) at Function.Module._load (module.js:424:3) at Module.require (module.js:483:17) at require (internal/module.js:20:19) 我已经检查了文件系统,并且edge_nativeclr.node模块确实存在。 我的怀疑是,我不知道如何不正确地build立模块,它可能是针对错误版本的节点,所以电子无法导入模块。 我尝试了几个不同的东西,包括遵循electron-edge的手动更新build.bat 的步骤 ,并将–target=1.4.12 […]