There are multiple ways you can create a window in node-webkit, because of security concerns (enabling newly open window access to require enables them access to multiple dangerous settings.) You are probably using the window.open from browser object?
Probably the newly open window has the 'node-enabled' set to false, to disable access to the node (more accurate, none of the parameters passed, so probably node is disabled by default, thus required not defined).
You can pass all of the parameters of the manifest format to the new windows:
var win = gui.Window.open('https://github.com', {
position: 'center',
width: 901,
height: 127
});[/code:31thx1i5]
but mind that we're not doing the window.open, but rather gui.window.open.
I have managed to get multiple c2 projects together in a nw app, but i packed it manually, had custom manifest file, used custom plugin for opening new windows, and it was long time ago.
I would recommend to dive in [url=https://github.com/rogerwang/node-webkit/wiki/Window]window[/url] and [url=https://github.com/rogerwang/node-webkit/wiki/Security]security[/url] and [url=https://github.com/rogerwang/node-webkit/wiki/Manifest-format]manifest[/url] parts of the wiki for starters.
edit: sorry, i've written first, then opened your capx second -> i do not get any errors!