![安装Node后无法控制终端](https://linux22.com/image/1198799/%E5%AE%89%E8%A3%85Node%E5%90%8E%E6%97%A0%E6%B3%95%E6%8E%A7%E5%88%B6%E7%BB%88%E7%AB%AF.png)
答案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 的评论。