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即可
运行结果如下即可正常执行brew install node
网友评论