我用的是M1 mac,我试着用brew安装mkcert,
我使用的命令是:
brew install mkcert
这是我得到的错误:
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.我做错了什么?
发布于 2022-12-02 10:21:44
我最后做的是解决这个问题:
fatal: Could not resolve HEAD to a revision通过对这个线程进行投票最多的评论:
https://github.com/Homebrew/discussions/discussions/1512 --这是建议的解决方案:
rm -rf $(brew --repo homebrew/core)
brew tap homebrew/core发布于 2022-11-30 20:21:50
它对我来说很好,我也在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%3A3
######################################################################## 100.0%
==> Pouring mkcert--1.4.4.arm64_ventura.bottle.tar.gz
/opt/homebrew/Cellar/mkcert/1.4.4: 6 files, 3.8MB
==> Running `brew cleanup mkcert`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
$ mkcert --version
v1.4.4https://stackoverflow.com/questions/74626871
复制相似问题