一、原因
今天安裝
brew install node
報錯了,錯誤信息如下:
二、解決方案
1)查找homebrew-cask安裝位置
echo $(brew --repo homebrew/homebrew-cask)
// 輸出
/opt/homebrew/Library/Taps/homebrew/homebrew-cask
2)使用 git fetch --unshallow
命令,將淺復(fù)制的存儲庫轉(zhuǎn)換為完整的存儲庫,即將歷史記錄中所有的提交、分支和標(biāo)簽都拉取到本地。
git -C /opt/homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow
3)更新 brew
文章來源:http://www.zghlxwxcb.cn/news/detail-713598.html
brew update
再安裝node就可以了文章來源地址http://www.zghlxwxcb.cn/news/detail-713598.html
到了這里,關(guān)于Error: node: unknown or unsupported macOS version: :dunno 錯誤解決的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!