Have installed 4.5.1 and 4.5.2 on a macOS 10.10.5 machine via brew. The first time I tried 4.5.1 it had some errors because I had node already installed, but finished, subsequent builds look pretty “all good”, like this:
server:Cellar svradmin$ brew install grafana Updating Homebrew... ==> Auto-updated Homebrew! Updated 1 tap (homebrew/core). No changes to formulae. ==> Downloading https://github.com/grafana/grafana/archive/v4.5.2.tar.gz Already downloaded: /Users/svradmin/Library/Caches/Homebrew/grafana-4.5.2.tar.gz ==> go run build.go build ==> yarn install --ignore-engines ==> node_modules/grunt-cli/bin/grunt build --force ==> Caveats To have launchd start grafana now and restart at login: brew services start grafana Or, if you don't want/need a background service you can just run: grafana-server --config=/usr/local/etc/grafana/grafana.ini --homepath /usr/local/share/grafana cfg:default.paths.logs=/usr/local/var/log/grafana cfg:default.paths.data=/usr/local/var/lib/grafana cfg:default.paths.plugins=/usr/local/var/lib/grafana/plugins ==> Summary 🍺 /usr/local/Cellar/grafana/4.5.2: 5,769 files, 139.7MB, built in 4 minutes 42 seconds
However, you run it and …
Googling the error finds issue 7805, but (as some other google hits have pointed out), it’s difficult to run a default grunt task when you have no idea which folder contains the right gruntfile - and in fact there doesn’t appear to be a suitable-looking gruntfile in the whole (presumed) brew install directory , i.e. /usr/local/Cellar/grafana/4.5.2/
Somehow yesterday with 4.5.1 and trying some of the suggested npm installs, I did get the server to start and run, but the css was missing (which somewhat defeats the purpose of grafana).
I will probably switch now to building from source, but I thought I’d ask/report this.
Maybe 10.10 is too old now and nobody tested it, there’s no reason I can’t update that server other than “if it aint broke…”