【问题标题】:Heroku: heroku is not recognized as an internal or external command, operable program or batch fileHeroku:heroku 未被识别为内部或外部命令、可运行程序或批处理文件
【发布时间】:2021-03-09 14:13:26
【问题描述】:

正如您可能从标题中看出的那样,我在使用 Heroku 时遇到了困难。每当我在命令行中运行heroku --version 时,我都会收到错误'heroku' is not recognized as an internal or external command, operable program or batch file. 我已尝试多次卸载并重新安装heroku,但均未成功。我已经附上了我所采取的下载步骤的屏幕截图。

规格:

  • Windows v10.0.18363.1198,64 位
  • heroku CLI v7.47.3
  • Git v2.29.2.windows.2

下载步骤:

【问题讨论】:

    标签: heroku command-line heroku-cli


    【解决方案1】:

    确保将heroku 的路径添加到PATH。在这种情况下,它将是C:\Program Files (x86)\heroku\client\bin

    【讨论】:

      【解决方案2】:

      确保您重新启动系统并再次运行您的命令,之前为我工作过。

      重新启动后,在终端或 CMD 中使用heroku -v 检查您的 Heroku 版本。

      【讨论】:

        猜你喜欢
        • 2015-12-30
        • 2018-07-08
        • 1970-01-01
        • 2014-10-14
        • 2016-07-29
        • 1970-01-01
        • 2018-01-02
        相关资源
        最近更新 更多