If you try to install Grafana Alloy via Homebrew on MacOS you will get an error while yarn run build.
This happens for 1.5.0 as the version 1.4.3 has been installed without any issues.
This is what you get (see logs…)
I did try to run npx update-browserslist-db@latest even npx update-browserslist-db@latest --update-db but this does not work too…
One a side-note, it seems that versioning for Homebrew is not supported, so I can't install a previous version until this is fixed.
So brew install grafana/grafana/alloy@1.4.3 does not work…
Steps to reproduce
by a new Mac (just kidding, but I did run this on a fresh bought Mac mini M4… and some other Macs too…)
Install HomeBrew
follow your installation Guidelines:
run brew tap grafana/grafana
run brew install grafana/grafana/alloy
-> there you go
System information
Mac OS 15.1
Software version
Grafana Alloy 1.5.0
Logs
➜ ~ brew tap grafana/grafana
➜ ~ brew install grafana/grafana/alloy
==> Fetching grafana/grafana/alloy
==> Downloading https://github.com/grafana/alloy/archive/refs/tags/v1.5.0.tar.gz
Already downloaded: /Users/SOMEUSER/Library/Caches/Homebrew/downloads/4bf992ce5c20569d3810b62b73e547fb1490d7f766881219f1cc870edb60915f--alloy-1.5.0.tar.gz
==> Installing alloy from grafana/grafana
==> yarn
==> yarn run build
Last 15 lines from /Users/SOMEUSER/Library/Logs/Homebrew/alloy/02.yarn:
$ react-scripts build
Creating an optimized production build...
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
Failed to compile.
Unexpected end of JSON input
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
https://github.com/grafana/homebrew-grafana/issues
What's wrong?
If you try to install Grafana Alloy via Homebrew on MacOS you will get an error while
yarn run build
. This happens for 1.5.0 as the version 1.4.3 has been installed without any issues.This is what you get (see logs…)
I did try to run
npx update-browserslist-db@latest
evennpx update-browserslist-db@latest --update-db
but this does not work too…One a side-note, it seems that versioning for Homebrew is not supported, so I can't install a previous version until this is fixed. So
brew install grafana/grafana/alloy@1.4.3
does not work…Steps to reproduce
brew tap grafana/grafana
brew install grafana/grafana/alloy
-> there you goSystem information
Mac OS 15.1
Software version
Grafana Alloy 1.5.0
Logs