Path 解析用户权限时出错+;未找到Zsh命令

Path 解析用户权限时出错+;未找到Zsh命令,path,terminal,permissions,zsh,osx-elcapitan,Path,Terminal,Permissions,Zsh,Osx Elcapitan,这是将用户权限登录到终端后的用户权限列表: ➜ ~ ls -ld / /usr /usr/bin /usr/bin/manpath drwxr-xr-x 33 root wheel 1190 Nov 14 08:49 / drwxr-xr-x@ 11 root wheel 374 Nov 7 09:12 /usr drwxr-xr-x 1055 root wheel 35870 Nov 12 11:34 /usr/bin lrwxr-xr-x 1 ro

这是将用户权限登录到终端后的用户权限列表:

➜  ~  ls -ld / /usr /usr/bin /usr/bin/manpath
drwxr-xr-x    33 root  wheel   1190 Nov 14 08:49 /
drwxr-xr-x@   11 root  wheel    374 Nov  7 09:12 /usr
drwxr-xr-x  1055 root  wheel  35870 Nov 12 11:34 /usr/bin
lrwxr-xr-x     1 root  wheel      3 Nov  5 18:13 /usr/bin/manpath -> man
这是我在尝试更新权限时收到的错误:

➜  ~  chmod 755 / /usr /usr/bin /usr/bin/*
chmod: Unable to change file mode on /usr/bin/apropos: Operation not permitted
chmod: Unable to change file mode on /usr/bin/at: Operation not permitted
这一切都是为了调试以下zsh错误:

zsh: command not found
我已尝试重置$PATH变量,但无效。我已卸载并重新安装了zsh、运行brew doctor、重新安装了node等,但不确定从何处着手。我试图解决的问题有两个:

  • 修复路径,以便我可以使用来自 终点站
  • 修复权限,这样我就不会遇到任何进一步的问题 故障排除过程中的错误
  • 有人能提供指导吗?我已经试着调试了好几个小时了

    这是我当前的路径:

    ➜  ~  echo $PATH                               
    echo $PATH
    /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
    

    命令未找到错误通常与权限无关,因为大多数实用程序都是全局可执行的。你在上面写了一堆文字,但没有解决基本问题:你得到什么命令?找不到命令?没有这些信息,我们不可能帮助你。也可能是语法错误,无法知道。
    ➜  ~  爱奥尼亚开始空白zsh:command未找到:爱奥尼亚
    对此深表歉意。我npm安装了ionic和cordova,并接收到命令not found error(未找到错误)。