How to install nightly Grafana build or beta build on Mac using Homebrew

I followed this doc http://docs.grafana.org/installation/mac/ and ran command brew install --HEAD grafana/grafana/grafana
But , it installs Grafana Build 4.6.3, how could I install https://grafana.com/grafana/download/5.0.0-11923beta4?platform=linux Beta build or nightly builds on Mac?

does brew reinstall --HEAD grafana/grafana/grafana work?

Nope. getting error Fatal error: Unable to find local grunt.

SBHINGARE-MBP15:~ swapnil.kotwal$ brew list grafana | head -1
/usr/local/Cellar/grafana/4.6.3/.bottle/etc/grafana/grafana.ini
SBHINGARE-MBP15:~ swapnil.kotwal$ npm -v
5.6.0
SBHINGARE-MBP15:~ swapnil.kotwal$ grunt -version
grunt-cli v1.2.0
grunt v1.0.2
SBHINGARE-MBP15:~ swapnil.kotwal$ node -v
v6.11.0
SBHINGARE-MBP15:~ swapnil.kotwal$ brew reinstall --HEAD grafana/grafana/grafana
==> Reinstalling grafana/grafana/grafana
==> Cloning https://github.com/grafana/grafana.git
Updating /Users/swapnil.kotwal/Library/Caches/Homebrew/grafana–git
==> Checking out branch master
==> go run build.go build
==> yarn install
==> npm install grunt-cli -ddd --build-from-source --cache=/Users/swapnil.kotwal/Library/Caches/Homebrew/npm_cache
==> node_modules/grunt-cli/bin/grunt build
Last 15 lines from /Users/swapnil.kotwal/Library/Logs/Homebrew/grafana/04.grunt:
2018-02-22 16:40:39 +0530

node_modules/grunt-cli/bin/grunt
build

grunt-cli: The grunt command line interface (v1.2.0)

Fatal error: Unable to find local grunt.

If you’re seeing this message, grunt hasn’t been installed locally to
your project. For more information about installing and configuring grunt,
please see the Getting Started guide:

http://gruntjs.com/getting-started

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/grafana/homebrew-grafana/issues

These open issues may also help:
brew install grafana/grafana/grafana fails with error https://github.com/grafana/homebrew-grafana/issues/1
brew install grafana/grafana fail (different error) https://github.com/grafana/homebrew-grafana/issues/7
brew install grafana error https://github.com/grafana/homebrew-grafana/issues/5
homebrew of grafana fails https://github.com/grafana/homebrew-grafana/issues/6
Web Interface for Grafana not loaded https://github.com/grafana/homebrew-grafana/issues/4

Does this resolve it?

I had to brew uninstall grafana then brew install grafana --head to get past the grunt error.

1 Like

In my case it works only with:

brew install grafana --HEAD