node-webkit combine nodejs and browser environments,when I run existed site on node-webkit,some io and some dom event wil failure.
If you just want to use YUI against the webkit part of node-webkit you can do this:
var Y = YUI();
// trick YUI into not loading all the nodejs stuff, it's wonky here
Y.UA.nodejs = 0;