6

我尝试在 Windows 上登录 heroku。使用 cmd.exe

C:\Users\Komp_1\OneDrive\PHP_projects\chatbot>heroku auth:login
Enter your Heroku credentials:
Email: sergiuszxxxi@gmail.com
Password: **********
Enter your Heroku credentials:
Email: sergiuszxxxi@gmail.com
Password: **********
Enter your Heroku credentials:
Email:

它看起来像一个永无止境的循环。但是当我尝试使用 git-bash 登录时:

$ heroku login
Enter your Heroku credentials:
Email: Sergiusxxxi@gmail.com
 !    Login is currently incompatible with git bash/Cygwin/MinGW

有什么问题?我找不到解决方案。

4

3 回答 3

11

从 Git Bash 尝试使用winpty heroku 登录,它会工作

于 2017-07-15T14:46:41.183 回答
2

好的,这可能是 Heroku 的问题。修复此问题的简单步骤: 1. 转到 heroku 2. 注销 3. 重设密码 4. 转到您的电子邮件并设置新密码 5. 登录您的 heroku :-)

PS。我的密码是正确的,我在 cmd 和 heroku 上使用了相同的密码。在heroku上工作但在cmd中没有:-)

于 2017-06-08T09:37:56.230 回答
0

在我的 Windows 机器上,通过从 win 安装程序安装 Heroku CLI 解决了这个问题,在此处输入链接描述

在此之前,我已经通过 npm 安装了它。

附言

@Vishal 的解决方案

从 Git Bash 尝试使用 winpty heroku 登录,它会工作

没有用,因为 heroku 没有在 PATH 中定义

于 2020-12-17T12:58:44.747 回答