This is an automated email from the ASF dual-hosted git repository. duncangrant pushed a commit to branch duncangrant-arm64-fix in repository https://gitbox.apache.org/repos/asf/brooklyn-ui.git
commit c552d64dbd686d374c97ee876d55cf2dda7f5621 Author: Duncan Grant <duncangr...@gmail.com> AuthorDate: Tue Apr 19 14:21:26 2022 +0100 Update README.md --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 3264e5cc..4406ccef 100644 --- a/README.md +++ b/README.md @@ -109,6 +109,15 @@ or the `jpeg` compilation failing (note this one can be a non-fatal error at the Consult the list above of dependencies to install, and make sure you wipe the `node_modules` dirs. +If libpng still seems to be missing and you are using an M1 Mac then the following lines may help. + +```bash +arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" +arch -x86_64 /usr/local/bin/brew install libpng +``` + +This installs th x86 version of brew and uses that to install the x86 version of the libpng library. This won't affect your arm64 brew or anything installed using it. + If it still fails, try installing `nvm` (curl-to-bash) then `nvm ls-remote` and `nvm install v12.9.0` (or other latest). Then retry the `mvn` build; even though `mvn` uses a different version of `node` and `npm`, simply installing the latest node version sometimes sorts out errors.