ZSH:找不到命令
ZSH: command not found
我想执行命令 gclient。我已经在 PATH 中包含了它的位置。但是我不能直接通过命令执行它。谁能告诉我为什么?
~
❯ echo $PATH
/User/merle/depot_tools:/Users/merle/.nvm/versions/node/v11.10.0/bin:/usr/local/opt/mysql@5.5/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands
~
❯ ls depot_tools | grep gclient
README.gclient.md
annotated_gclient.py
gclient
gclient-new-workdir.py
gclient.bat
gclient.py
gclient_completion.sh
gclient_eval.py
gclient_paths.py
gclient_scm.py
gclient_utils.py
~
❯ gclient
zsh: command not found: gclient
~
❯ cd depot_tools
~/depot_tools master
❯ ./gclient
Usage: gclient.py <command> [options]
Meta checkout dependency manager for Git.
Commands are:.......
再看看你的路径:
export PATH=/User/merle/depot_tools:/Users/merle/...
您的系统只包含 1 个 User 还是多个 User???
它应该是:
export PATH=/Users/merle/depot_tools:/Users/merle/...
我想你可能会忘记
source ~/.nvm/nvm.sh
如果要自动加载,有两种方法
open ~/.zshrc
1.add
source ~/.nvm/nvm.sh
2.or 添加
export NVM_DIR="/Users/YOUR_USER_NAME(you need use you user name)/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
希望对您有所帮助
ZSH:找不到命令
问题是 .zshrc,它丢失了。
对我有用的解决方案:
您必须创建一个 .zshrc 文件。
创建使用“vim .zshrc”命令然后插入你的路径“export PATH="$PATH:pwd
/flutter/bin"
保存并完全退出您的终端。安装 gem cocoa pods 然后接受许可证。你很高兴。
我想执行命令 gclient。我已经在 PATH 中包含了它的位置。但是我不能直接通过命令执行它。谁能告诉我为什么?
~
❯ echo $PATH
/User/merle/depot_tools:/Users/merle/.nvm/versions/node/v11.10.0/bin:/usr/local/opt/mysql@5.5/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands
~
❯ ls depot_tools | grep gclient
README.gclient.md
annotated_gclient.py
gclient
gclient-new-workdir.py
gclient.bat
gclient.py
gclient_completion.sh
gclient_eval.py
gclient_paths.py
gclient_scm.py
gclient_utils.py
~
❯ gclient
zsh: command not found: gclient
~
❯ cd depot_tools
~/depot_tools master
❯ ./gclient
Usage: gclient.py <command> [options]
Meta checkout dependency manager for Git.
Commands are:.......
再看看你的路径:
export PATH=/User/merle/depot_tools:/Users/merle/...
您的系统只包含 1 个 User 还是多个 User???
它应该是:
export PATH=/Users/merle/depot_tools:/Users/merle/...
我想你可能会忘记
source ~/.nvm/nvm.sh
如果要自动加载,有两种方法
open ~/.zshrc
1.add
source ~/.nvm/nvm.sh
2.or 添加
export NVM_DIR="/Users/YOUR_USER_NAME(you need use you user name)/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
希望对您有所帮助
ZSH:找不到命令
问题是 .zshrc,它丢失了。 对我有用的解决方案:
您必须创建一个 .zshrc 文件。
创建使用“vim .zshrc”命令然后插入你的路径“export PATH="$PATH:pwd
/flutter/bin"
保存并完全退出您的终端。安装 gem cocoa pods 然后接受许可证。你很高兴。