Hi

I am trying to build ambari from source.

I am always getting error due to brunch not installed.

I have version 1.7.17 installed on Mac

agats-mbp:ambari jagatsingh$ brunch version

1.7.17

I am following instructions on wiki of Ambari.

https://cwiki.apache.org/confluence/display/AMBARI/Ambari+Development

How to fix this.

Thanks in advance

INFO] Executing tasks


ambari-web-compile:

     [exec] npm WARN package.json [email protected] No README data

     [exec] [email protected] node_modules/mocha-phantomjs

     [exec] ├── [email protected]

     [exec] ├── [email protected] ([email protected])

     [exec] └── [email protected] ([email protected], [email protected], [email protected],
[email protected], [email protected], [email protected], [email protected])

     [exec] /usr/local/lib/node_modules/brunch/lib/watch.js:433

     [exec]             throw new Error("You probably need to execute `npm
install` to ins

     [exec]                   ^

     [exec] Error: You probably need to execute `npm install` to install
brunch plugins. SyntaxError:
/Users/jagatsingh/dev/code/open/ambari/ambari-web/node_modules/ember-precompiler-brunch/node_modules/jsdom/lib/jsdom/level1/core.js:418

     [exec]   set nodeName() { throw new core.DOMException();},

     [exec]                ^

     [exec] Unexpected token )

     [exec]   at /usr/local/lib/node_modules/brunch/lib/watch.js:433:19

     [exec]   at Array.map (native)

     [exec]   at loadDeps
(/usr/local/lib/node_modules/brunch/lib/watch.js:418:10)

     [exec]   at loadPackages
(/usr/local/lib/node_modules/brunch/lib/watch.js:438:15)

     [exec]   at /usr/local/lib/node_modules/brunch/lib/watch.js:458:19

     [exec]   at /usr/local/lib/node_modules/brunch/lib/helpers.js:529:16

     [exec]   at /usr/local/lib/node_modules/brunch/lib/helpers.js:485:14

     [exec]   at
/usr/local/lib/node_modules/brunch/node_modules/read-components/index.js:263:16

     [exec]   at
/usr/local/lib/node_modules/brunch/node_modules/read-components/index.js:72:14

     [exec]   at FSReqWrap.cb [as oncomplete] (fs.js:228:19)

     [exec]

[INFO]
------------------------------------------------------------------------

[INFO] Reactor Summary:

[INFO]

[INFO] Ambari Main ........................................ SUCCESS [
1.493 s]

[INFO] Apache Ambari Project POM .......................... SUCCESS [
0.376 s]

[INFO] Ambari Web ......................................... FAILURE [
18.699 s]

[INFO] Ambari Views ....................................... SKIPPED

[INFO] Ambari Admin View .................................. SKIPPED

[INFO] Ambari Server ...................................... SKIPPED

[INFO] Ambari Agent ....................................... SKIPPED

[INFO] Ambari Client ...................................... SKIPPED

[INFO] Ambari Python Client ............................... SKIPPED

[INFO] Ambari Groovy Client ............................... SKIPPED

[INFO] Ambari Shell ....................................... SKIPPED

[INFO] Ambari Python Shell ................................ SKIPPED

[INFO] Ambari Groovy Shell ................................ SKIPPED

[INFO]
------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO]
------------------------------------------------------------------------

[INFO] Total time: 20.870 s

[INFO] Finished at: 2015-04-21T12:19:39+10:00

[INFO] Final Memory: 33M/526M

[INFO]
------------------------------------------------------------------------

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-antrun-plugin:1.7:run (compile) on project
ambari-web: An Ant BuildException has occured: exec returned: 1

[ERROR] around Ant part ...<exec failonerror="true"
dir="/Users/jagatsingh/dev/code/open/ambari/ambari-web"
executable="brunch">... @ 8:104 in
/Users/jagatsingh/dev/code/open/ambari/ambari-web/target/antrun/build-ambari-web-compile.xml

[ERROR] -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]

[ERROR] For more information about the errors and possible solutions,
please read the following articles:

[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

[ERROR]

[ERROR] After correcting the problems, you can resume the build with the
command

[ERROR]   mvn <goals> -rf :ambari-web

jagats-mbp:ambari jagatsingh$ brunch -version


  error: unknown option `-v'


jagats-mbp:ambari jagatsingh$ brunch version

1.7.17

jagats-mbp:ambari jagatsingh$

Reply via email to