admin avatar

mac os brew "shell-init: error retrieving current directory"的解决方法

🕧 by admin





mac os 使用brew安装软件时出现了以下错误

1
2
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Error: The current working directory doesn't exist, cannot proceed.

其实这不算是一种错误,那是因为当前目前是一个不存在的路径,

通常这种错误就是你cd 进入了某软件目录,然后执行了删除该软件命令导致的

执行pwdcd ~即可解决相关问题





💘 相关文章





写一条评论

Based on Golang + fastHTTP + sdb | go1.18.1 Processed in 1ms