0

trying to install maven using brew install maven

getting bellow error


Running `brew update --preinstall`...
fatal: Could not resolve HEAD to a revision
Warning: No available formula with the name "maven".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.

  • Does https://stackoverflow.com/questions/65605282/trying-to-install-hugo-via-homebrew-could-not-resolve-head-to-a-revision help? – Nico Haase Jan 03 '22 at 10:17

1 Answers1

0

Execute the following commands:

brew doctor

git -C $(brew --repo homebrew/core) checkout master

Amit Meena
  • 2,884
  • 2
  • 21
  • 33