在 Electron 中使用 Edge.JS 失败

Using Edge.JS with Electron fails

我正在尝试在 Electron 应用程序中使用 Edge.JS。 当需要边缘模块时,应用程序抛出以下错误:

未捕获错误:找不到指定的过程。 \?\C:\myapp\node_modules\edge\lib\native\win32\x64.1.0\edge_nativeclr.node

知道这个错误的原因吗?

改用 edge-atom-shell 可以解决所有这些问题

这是我让它与 edge-atom-shell 一起工作的唯一方法:
> npm 安装 --save-dev electron-prebuilt
> npm 安装边缘原子-shell
> cd node_modules/edge-atom-shell/
> 节点 gyp 配置 --msvs_version=2013
> HOME=~/.electron-gyp node-gyp rebuild --target=0.36.6 --arch=x64 --dist-url=https://atom.io/download/atom-shell

可能晚了,但肯定会在将来帮助一些人,这里的这个 repo 解决了这种情况:

https://github.com/kexplo/electron-edge