Re: build error
There's some troubleshooting suggestions here  which might help but I
guess there's a dependency that you're missing - possibly libpng looking at
the Dockerfile .
It might be worth considering using the docker container for building
brooklyn which saves you worrying about having the correct dependencies and
is how the CI works. It is a bit slow and if you're not on ubuntu make
sure you follow the instructions for deleting the node_modules from the
We need to update the main build instructions but I'm not sure whether we
should just recommend using the docker approach.
On Sat, 8 Sep 2018 at 22:38 Geoff Macartney <geoff.macartney@xxxxxxxxx>
> Hi all,
> I'm building Brooklyn from fresh on a new machine, and getting errors
> building the new UI; I haven't built this before myself, and I'm unsure if
> I've missed some new instructions for setup of my workspace. So far I've
> just installed mvn and Java 8, cloned the repos, and done 'mvn clean
> install', all basically per
> The errors are in the build log fragment below, picking up the build log at
> Any pointers?
> [INFO] --- frontend-maven-plugin:1.3:npm (npm install) @ brooklyn-ui-home
> [INFO] Running 'npm install' in /Users/geoff/workspaces/
> [WARNING] npm WARN email@example.com requires a peer of webpack@^2.0.0
> ^3.0.0 || ^4.0.0 but none is installed. You must install peer dependencies
> [INFO] up to date in 5.206s
> [INFO] --- frontend-maven-plugin:1.3:npm (npm build) @ brooklyn-ui-home ---
> [INFO] Running 'npm run build' in /Users/geoff/workspaces/
> [INFO] > firstname.lastname@example.org-SNAPSHOT build /Users/geoff/workspaces/
> [INFO] > rimraf dist && webpack --config ./config/build/webpack.config.js
> [INFO] Build with: ENV production - brand-identifier brooklyn
> [ERROR] Error
> [ERROR] at NormalModule.onModuleBuildFailed (/Users/geoff/workspaces/
> [ERROR] at nextLoader (/Users/geoff/workspaces/
> [ERROR] at /Users/geoff/workspaces/
> [ERROR] at context.callback (/Users/geoff/workspaces/
> [ERROR] at imagemin.buffer.then.catch.err (/Users/geoff/workspaces/
> [ERROR] at <anonymous>
> [ERROR] npm ERR! code ELIFECYCLE
> [ERROR] npm ERR! errno 1
> [ERROR] npm ERR! email@example.com-SNAPSHOT build: `rimraf dist &&
> webpack --config ./config/build/webpack.config.js --bail`
> [ERROR] npm ERR! Exit status 1
> [ERROR] npm ERR!
> [ERROR] npm ERR! Failed at the firstname.lastname@example.org-SNAPSHOT build
> [ERROR] npm ERR! This is probably not a problem with npm. There is likely
> additional logging output above.
> [ERROR] npm ERR! A complete log of this run can be found in:
> [ERROR] npm ERR!
*Cloudsoft <https://cloudsoft.io/> *| Bringing Business to the Cloud
Need a hand with AWS? Get a Free Consultation.