使用 Bash Termimal 在 Mac 上安装 Heroku CLI

Spi*_*wen 0 heroku-cli

我正在尝试按照本指南在我的 Mac 上安装 Heroku CLI。 https://devcenter.heroku.com/articles/heroku-cli#download-and-install

当我打字时

brew tap heroku/brew && brew install heroku
Run Code Online (Sandbox Code Playgroud)

终端返回

bash: brew: command not found
Run Code Online (Sandbox Code Playgroud)

我应该在这里做什么?

Nic*_*cho 5

你已经在你的系统上安装了brew吗?如果没有尝试阅读此内容:

https://brew.sh/

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)
Run Code Online (Sandbox Code Playgroud)

将其粘贴到 macOS 终端或 Linux shell 提示符中。

安装brew后,再次尝试安装heroku cli

https://devcenter.heroku.com/articles/heroku-cli