Node-webkit works on Mac, crashes and can't load module on Windows
Posted
by
user756201
on Stack Overflow
See other posts from Stack Overflow
or by user756201
Published on 2014-05-28T03:21:57Z
Indexed on
2014/05/28
3:24 UTC
Read the original article
Hit count: 263
node.js
|node-webkit
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.
© Stack Overflow or respective owner