答案1
它现在可以正常工作了。我已删除~/.bashrc
以下几行:
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# Load Angular CLI autocompletion.
source <(ng completion script)
答案已从此处移至OP 的评论。