简体   繁体   English

在Windows 7下使用electron.js时,LevelDOWN找不到绑定文件

[英]LevelDOWN could not locate the bindings file when using electron.js under Windows 7

I created nodeJS server that uses levelDOWN module. 我创建了使用levelDOWN模块的nodeJS服务器。 So when I'm starting my server with node app.js everything is fine. 因此,当我使用node app.js启动服务器时,一切都很好。 I want to create electron desktop app that will use my app.js file. 我想创建将使用我的app.js文件的电子桌面应用程序。 So I installed electron module and created electronApp.js file: 因此,我安装了electronic模块并创建了electronApp.js文件:

    var app = require('electron').app;

    app.on('ready', function(){

        // start http server
        var server = require(__dirname + "/app");
    });

Now I'm trying to run my application electron electronApp.js but I'm getting next error: 现在,我正在尝试运行我的应用程序electron electronApp.js但遇到下一个错误:

在此处输入图片说明

I tried node-gyp rebuild and electron-rebuild as well but it did not help. 我也尝试了node-gyp rebuildelectron-rebuild ,但没有帮助。 I'm dissapointed. 我很失望 How to solve it? 怎么解决呢?

I met the same error and submitted an issue on Electron issue list: https://github.com/electron/electron/issues/8161 我遇到了同样的错误,并在电子问题列表上提交了一个问题: https : //github.com/electron/electron/issues/8161

Hope this can be resolved soon. 希望这个问题能尽快解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM