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



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 ~即可解决相关问题

标签: os, shell, mac, brew, init

添加新评论