H2O is an Open Source, Distributed, Fast & Scalable Machine Learning Platform: Deep Learning, Gradient Boosting (GBM) & XGBoost, Random Forest, Generalized Linear Modeling (GLM with Elastic Net), K-Means, PCA, Generalized Additive Models (GAM), RuleFit, Support Vector Machine (SVM), Stacked Ensembles, Automatic Machine Learning (AutoML), etc.
I remember this being an issue pretty much any time I've tried to build H2O on a new machine (usually mac?), and other people have reported this issue as well. We have a missing dependency on the H2O-3 build instructions -- bower.
{code}
Task :h2o-web:installNpmPackages
up to date in 0.842s
:h2o-web:installNpmPackages took 1.576 secs
Task :h2o-web:installBowerPackages FAILED
node_modules/.bin/bower: line 1: ../bower/bin/bower: No such file or directory
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':h2o-web:installBowerPackages'.
Process 'command 'node_modules/.bin/bower'' finished with non-zero exit value 127
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Task :h2o-web:installNpmPackages
up to date in 0.795s
:h2o-web:installNpmPackages took 1.495 secs
Task :h2o-web:installBowerPackages FAILED
node_modules/.bin/bower: line 1: ../bower/bin/bower: No such file or directory
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':h2o-web:installBowerPackages'.
Process 'command 'node_modules/.bin/bower'' finished with non-zero exit value 127
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
I remember this being an issue pretty much any time I've tried to build H2O on a new machine (usually mac?), and other people have reported this issue as well. We have a missing dependency on the H2O-3 build instructions -- bower.
{code}
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':h2o-web:installBowerPackages'.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. See https://docs.gradle.org/4.7/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 22s 48 actionable tasks: 48 executed
Task timings: 8.855 secs :h2o-core:compileJava 3.412 secs :h2o-algos:compileJava 2.684 secs :h2o-genmodel-ext-xgboost:shadowJar 1.576 secs :h2o-web:installNpmPackages 0.598 secs :h2o-core:jar 0.557 secs :h2o-ext-xgboost:compileJava 0.550 secs :h2o-genmodel:compileJava 2.719 secs All others me$ which bower me$ which node /usr/local/bin/node {code}
To solve: {code} brew install bower {code}
Still fails:
{code}
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':h2o-web:installBowerPackages'.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. See https://docs.gradle.org/4.7/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 19s 48 actionable tasks: 48 executed
Task timings: 8.926 secs :h2o-core:compileJava 2.554 secs :h2o-genmodel-ext-xgboost:shadowJar 2.048 secs :h2o-algos:compileJava 1.495 secs :h2o-web:installNpmPackages 0.636 secs :h2o-ext-xgboost:compileJava 0.591 secs :h2o-core:jar 0.334 secs :h2o-automl:compileJava 2.230 secs All others {code} Do this and then it works: {code} me$ rm -rf node_modules me$ npm install {code}