Mac-關於升級macOS Catalina後,終端試用問題

xcrun: error

在終端輸入 git clone *****後,提示:html

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing*****,解決方法,直接在終端輸入如下便可:git

xcode-select --install

shell 腳本問題

若是每次打開終端都提示:shell

The default interactive shell is now zsh.vim

To update your account to use zsh, please run `chsh -s /bin/zsh`.xcode

緣由是本來使用的是bash風格,提示語告知如今新系統的shell已經更換爲zsh,請用此 `chsh -s /bin/zsh` 命令切換。bash

解決辦法:post

(1) 不使用bash,切換zsh,`chsh -s /bin/zsh`命令切換便可。spa

(2) 繼續使用bash,但又不想出現提示語,則打開文件:命令行

vim ~/.bash_profile

.bash_profile文件最下方加上:code

# macOS Catalina
export BASH_SILENCE_DEPRECATION_WARNING=1

而後ESC  :wq 保存退出,從新打開命令行警示語消失。

 

相關引用:https://www.cnblogs.com/KuJo/p/11643142.html

相關文章
相關標籤/搜索