Im using a M1 mac and Im trying to install mkcert using brew,
The command that I use is:
brew install mkcert
This is the error that I get:
brew install mkcert
fatal: Could not resolve HEAD to a revision
Warning: No available formula with the name "mkcert".
==> 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.
What am I doing wrong?
CodePudding user response:
What I ended up doing is resolving this part:
fatal: Could not resolve HEAD to a revision
by following the most voted comment on this thread:
https://github.com/Homebrew/discussions/discussions/1512
this is the solution the suggested:
rm -rf $(brew --repo homebrew/core)
brew tap homebrew/core
CodePudding user response:
It works fine for me, I am also on M1
$ brew search mkdcert
==> Formulae
mkcert ✔
$ brew install mkcert
==> Downloading https://ghcr.io/v2/homebrew/core/mkcert/manifests/1.4.4
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/mkcert/blobs/sha256:af89337b73c8d4bb20c0cdfeeaccc17b620d8badf39edfb06a8fb191ec328c36
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:af89337b73c8d4bb20c0cdfeeaccc17b620d8badf39edfb06a8fb191ec328c36?se=2022-11-30T20:3
######################################################################## 100.0%
==> Pouring mkcert--1.4.4.arm64_ventura.bottle.tar.gz