Mac nvm “complete:13: command not found: compdef”
从nvm官网下载的安装包,安装后每次打开Terminal都会先报complete:13: command not found: compdef
解决办法:
Teminal运行echo $HOME/.nvm,应该会显示/Users/{your username}/.nvm
open ~/.zshrc打开配置文件在文件里#注释掉这一行:[ -s "$NVM_DIR/bash_completion" ] && /. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
参考
Mac solved command not found: compdef
但是装完nvm后 不知道为什么每次打开terminal需要的反应时间变长了?
Mac nvm “complete:13: command not found: compdef”最先出现在Python成神之路。
共有 0 条评论