Update. I discovered that I was running a "pre release" version of Node.js. I went back and installed v0.10.1 and my ambari-web test server is now up and running.
Chad ----- Original Message ----- From: "Chad Roberts" <[email protected]> To: [email protected] Sent: Friday, March 22, 2013 12:41:37 PM Subject: Re: Problem running ambari-web test server Thanks for the tips. I went ahead and started over, following the directions from the updated wiki. I encountered the same exception that I had come across earlier. As you suggested, I executed... # cd $AMBARI_DIR/ambari-web # rm -rf node_modules public # npm install # brunch build The output of brunch build was the same exception that I got when doing brunch w --s earlier. 'brunch test' gives me a similar exception, but also gives me a small bit of extra information at the top (line in index.js where exception is thrown). > brunch test /home/croberts/workspace/ambari/ambari-web/node_modules/ember-precompiler-brunch/lib/index.js:22 this.window.run(fs.readFileSync(this.config.files.templates.paths.jquery ^ TypeError: Object [object global] has no method 'run' at EmberPrecompiler.module.exports.EmberPrecompiler.setup (/home/croberts/workspace/ambari/ambari-web/node_modules/ember-precompiler-brunch/lib/index.js:22:19) at new EmberPrecompiler (/home/croberts/workspace/ambari/ambari-web/node_modules/ember-precompiler-brunch/lib/index.js:31:14) at /usr/local/lib/node_modules/brunch/lib/helpers.js:546:14 at Array.map (native) at Object.exports.getPlugins (/usr/local/lib/node_modules/brunch/lib/helpers.js:545:8) at /usr/local/lib/node_modules/brunch/lib/commands/watch.js:168:25 at Object.exports.loadPackages (/usr/local/lib/node_modules/brunch/lib/helpers.js:539:12) at initialize (/usr/local/lib/node_modules/brunch/lib/commands/watch.js:161:20) at new BrunchWatcher (/usr/local/lib/node_modules/brunch/lib/commands/watch.js:247:7) at module.exports.watch (/usr/local/lib/node_modules/brunch/lib/commands/watch.js:282:12) Are there any other logs that might help me in debugging this? Any thoughts on a root cause? Thanks again, Chad ----- Original Message ----- From: "Yusaku Sako" <[email protected]> To: [email protected] Sent: Thursday, March 21, 2013 5:02:56 PM Subject: Re: Problem running ambari-web test server Hi Chad, That Wiki that you referred to is outdated. Please follow this Wiki instead: https://cwiki.apache.org/confluence/display/AMBARI/Ambari+Development Having said that, I've had several people report to me about the same error, even when following the updated instructions mentioned above. I was able to replicate the issue, but the problem went away for me after doing: # cd $AMBARI_DIR/ambari-web # rm -rf node_modules public # npm install # brunch build Please let me know if you continue to see issue. Yusaku On Thu, Mar 21, 2013 at 1:25 PM, Chad Roberts <[email protected]> wrote: > Hello, > I'm new to the world of ambari development and I'm hoping someone might be > able help me along the path. > > I've been attempting to follow the instructions provided at > https://cwiki.apache.org/AMBARI/ambari-666-development.html > > I've grabbed the latest from trunk and am attempting to run the ambari-web > test server (Fedora 17 64-bit). > > Here is what I get when I run "brunch w --s": > > TypeError: Object [object global] has no method 'run' > at EmberPrecompiler.module.exports.EmberPrecompiler.setup > (/home/croberts/workspace/ambari/ambari-web/node_modules/ember-precompiler-brunch/lib/index.js:22:19) > at new EmberPrecompiler > (/home/croberts/workspace/ambari/ambari-web/node_modules/ember-precompiler-brunch/lib/index.js:31:14) > at /usr/local/lib/node_modules/brunch/lib/helpers.js:546:14 > at Array.map (native) > at Object.exports.getPlugins > (/usr/local/lib/node_modules/brunch/lib/helpers.js:545:8) > at /usr/local/lib/node_modules/brunch/lib/commands/watch.js:168:25 > at Object.exports.loadPackages > (/usr/local/lib/node_modules/brunch/lib/helpers.js:539:12) > at initialize > (/usr/local/lib/node_modules/brunch/lib/commands/watch.js:161:20) > at new BrunchWatcher > (/usr/local/lib/node_modules/brunch/lib/commands/watch.js:247:7) > at <error: illegal access> > > Regards, > Chad >
