我在4个月前安装了heroku cli,并且使用得很好。但是今天我想再登录一次..然而,我一直收到错误。
zsh: command not found: heroku然后我在网上搜索,甚至尝试运行"brew“命令,尽管我的路径中确实有"source ~/.bash_profile",但当我运行”brew“时,它仍然给我提供:
/bin/bash: /usr/local/Library/Homebrew/brew.sh: No such file or directory这是我的路径:
# Ensure user-istalled binaries take precedence
export PATH=/usr/local/bin:$PATH
# Load .bashrc if it exists
test -f ~/.bashrc && source ~/.bashrc
export PATH=$PATH:~/Desktop/bin
export PATH=/Library/PostgreSQL/13/bin:$PATH
export PATH=/usr/local/Homebrew/bin:$PATH
export PATH=/Applications/Postgres.app/Contents/Versions/latest/bin:$PATH
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-10.jdk/Contents/Home/bin/apt我被困在这个问题上,似乎找不到问题所在。
发布于 2021-04-14 09:45:09
我解决了这个问题..通过删除/移除我的mac中所有与HEROKU相关的文件。然后,我运行了以下命令:
curl https://cli-assets.heroku.com/install.sh | sh我没有使用brew就可以从https://devcenter.heroku.com/articles/heroku-cli#uninstalling-the-legacy-heroku-gem的“其他安装方法”中访问它,并且它工作了。
https://stackoverflow.com/questions/67084297
复制相似问题