Estoy tratando de reparar Homebrew.
Recientemente intenté reinstalarlo pero cuando escribí "brew doctor"
Mi salida fue:
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
The current working directory doesn't exist, cannot proceed.
He intentado reinstalarlo escribiendo esto nuevamente en la línea de comandos:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Pero mi salida es:
It appears Homebrew is already installed. If your intent is to reinstall you
should do the following before running this installer again:
rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup
¿Cómo puedo arreglar mi instalación de Homebrew?
Gracias.