0

When I use a terminal or zsh I can't run commands, And this is what appears:

# /dev/fd/14:18: command not found: compdef #

Does anyone know how to reset the terminal to normal mode?

I tried to solve it and the only thing that got my terminal back to normal is the elapsed time, but the problem is not solved because this line keeps repeating again, and then I'm stuck

James Z
  • 12,209
  • 10
  • 24
  • 44

3 Answers3

0

I understood what the problem was, I just installed the latest version of Node js, and that's why I had this problem, when I reverted to a previous version it solved the problem

  • 1
    This isn't really a useful answer, because it's not at all obvious what happened with the new installation to cause the problem. (At the very least, you would want to mention *which* version of Node caused the problem, but unless that's repeatable, I would just delete the question.) – chepner Jan 07 '23 at 20:36
0

I had a similar situation today, and after looking up the information, it was the reason why I installed Angular

  • 1
    Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Feb 20 '23 at 21:56
0

Just put this line in .zshrc it's work for me:

autoload compinit compinit

i find the solution here : https://github.com/crissxross/dotfiles/commit/b755c6066267e357b16139bea355579eb3bd4af4

olivier
  • 16
  • 1