Take the 2-minute tour ×

I'm trying to use the nodejs 'edge' module from within my node-webkit application. e.g.

var edge = require('../node_modules/edge')
   var helloWorld = edge.func('async (input) => { return ".NET Welcomes " + input.ToString(); }');
         if (error) throw error;

However, whenever I call it I get the following error:-

Uncaught Error: %1 is not a valid Win32 application.

If I run the same code outside of node-webkit using nodejs it works OK -

This also works OK from within NW:

 var dns = require('../node_modules/native-dns')
    var question = dns.Question({
        name: 'www.google.com',
        type: 'A'

    var req = dns.Request({
        question: question,
        timeout: 1000

    req.on('timeout', function () {
        console.log('Timeout in making request');

    req.on('message', function (err, answer) {
        answer.answer.forEach(function (a) {

    req.on('end', function () {
        console.log('Finished processing request');


Any guidance would be appreciated!

share|improve this question
Did you rebuild the modules with nw-gyp? –  Roger Wang Jun 1 '13 at 23:54
Yes-I did try this but still seeing the same problem –  user1513388 Jun 3 '13 at 13:56
I've had similar trouble with native add-ons and decided to drop them entirely for now. Here's an issue I opened a bit ago: github.com/rogerwang/node-webkit/issues/803 –  theabraham Jun 23 '13 at 17:27
I'm also seeing the same exact error and I'm currently Googling, if I find anything I'll link it here. –  Frank Hale Nov 24 '13 at 16:38
Yeah, I've pretty much given up on node-WebKit now - can't recompile every time I want to use a library that uses native code. Adobe Brackets-shell looks very promising. –  user1513388 Nov 28 '13 at 19:07

Your Answer



Browse other questions tagged or ask your own question.