Mac升級macOS Big Sur后安裝brew install node時報錯
homebrew-core is a shallow clone.
To `brew update`, first run:
? git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
This command may take a few minutes to run due to the large size of the repository.
解決辦法運行brew update-reset即可
運行結(jié)果如下即可正常執(zhí)行brew install node