Node-webkit works on Mac, crashes and can't load module on Windows
- by user756201
I've created a full node-webkit app that works fine on the Mac OSX version of node-webkit. Everything works, it loads a key external nodeJS module (marked), and the world is good.
However, when I try to run the app on the Windows version of Node-webkit as described in the Wiki, the app crashes immediately (in fact, it crashes immediately when I try all the options: dragging a folder onto nw.exe, dragging an app.nw compressed folder, and running both from the command line).
The only thing that gets me closer is opening nw.exe and then pointing the node-webkit location bar to the index file. Then I get this error:
Uncaught node.js Error
Error: Cannot find module 'marked'
I tried commenting out the code that requires marked:
var marked = require('marked');
That returns the app to crashing immediately. I assumed it was because of context issues between node.js and the node-webkit browser, but those seem to not be at fault since I tried this suggestion to make sure it finds the correct file for the marked module...went right back to immediate crashing.
I'm out of ideas because the crashes don't seem to leave me any way of knowing what the error was.