使用 brew命令更新node出現錯誤Error,訊息,可以使用下列方法解決 Bryantde-MBP:Documents bryantlin$ brew upgrade node Error : 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. This restriction has been made on GitHub's request because updating shallow clones is an extremely expensive operation due to the tree layout and traffic of Homebrew/homebrew-core and Homebrew/homebrew-cask. We don't do this for you automatically to avoid repeatedly performing an expensive unshallow operation in CI systems (which should instead be fixed to not use shallow clones). Sorry for the inconvenience! Warning: node 17.0.1 already installed 在 Mac 上的 更新 Node 方法 1. 打開終端並使用以下命令檢查當前的 Node 版本: ``` node -v ``` 2. 使用以下命令清理 npm 緩存: ``` npm cache clean --force ``` 這樣可以減少在更新過程中發生問題的可能性。 3. 使用以下命令安裝 `n` 包: ``` npm install -g n ``` 這條命令將...