Although that was very obvious, I tried to run AppJS app under MacOS X 10.6.8 "normally" ( meaning without specifying an architecture ). And of course it failed for the following reason:
Error: dlopen(/Users/nembleton/node_modules/appjs/node_modules/appjs-mac/build/Release/appjs.node, 1): no suitable image found. Did find:
/Users/nembleton/node_modules/appjs/node_modules/appjs-mac/build/Release/appjs.node: mach-o, but wrong architecture
at Object.Module._extensions..node (module.js:480:11)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
For all the dummies like me, I had a quick look and came to try this:
arch -i386 node app.js
This will run, output some "leaking" warnings and then come to your main on() function.
The default exemple ( on the appjs website:
http://appjs.org/ ) runs just fine and outputs this:
Event WindowReady called
[0630/174407:ERROR:cef_context.cc(356)] No localized string available for id 16504
[0630/174407:ERROR:cef_context.cc(430)] No data resource available for id 4544
Hope that helps MacOS folks around.