【问题标题】:Cannot connect to Heroku CLI无法连接到 Heroku CLI
【发布时间】:2021-04-14 09:45:08
【问题描述】:

我在 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

我被困在这个问题上,似乎无法找出问题所在。

【问题讨论】:

    标签: amazon-web-services macos heroku heroku-cli


    【解决方案1】:

    我解决了这个问题.. 通过在我的 mac 中删除/删除所有与 HEROKU 相关的文件。 然后我运行了以下命令:

    curl https://cli-assets.heroku.com/install.sh | sh
    

    我在不使用 brew 的情况下从 https://devcenter.heroku.com/articles/heroku-cli#uninstalling-the-legacy-heroku-gem“其他安装方法”获得了访问权限,并且成功了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-01-26
      • 1970-01-01
      • 2014-12-27
      • 2017-12-02
      • 2020-11-21
      • 2017-09-10
      • 2015-08-03
      • 2017-08-18
      相关资源
      最近更新 更多