在Windows 10上安装Heroku Toolbelt [英] Installing Heroku Toolbelt on Windows 10

查看:579
本文介绍了在Windows 10上安装Heroku Toolbelt的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



这是我第一次安装Heroku。我在安装Heroku toolbelt时遇到了一些问题。我从 https://toolbelt.heroku.com/windows 下载了它。



安装完成后,我尝试启动一个新的Git Bash并键入 heroku login ,但是我得到的是 bash:heroku :command not found



在Windows Powershell上运行相同的命令,我得到的是

 'MYSQL'不被识别为内部或外部命令,
可操作程序或批处理文件。
'MYSQL'不被识别为内部或外部命令,
可操作程序或批处理文件。

有什么建议吗?我认为使用Google搜索这些内容会有所帮助,但我还没有找到太多。



我遵循这里,但是现在当在Powershell上输入 heroku login 时,什么都不会发生。没有任何变化的Git Bash。



我检查了,Heroku文件夹被添加到了PATH中。



我想在安装其他任何东西之前我会要求一些帮助。



谢谢!

解决方案


bash:heroku:没有找到命令


错误消息很明显:Bash找不到 heroku PATH

$ b $ 命令,它不是 b

我检查了,Heroku文件夹已添加到PATH中。


看来您没有正确检查它。
请注意,即使它在 PATH 设置窗口中看起来正确,
Git Bash可能会有不同的 PATH 已配置。
要在Git Bash中查看 PATH ,请运行:

  echo $ PATH 

调试路径问题时,
最好先运行 heroku 与绝对路径。例如,如果它在 C:\ Program Files \Heroku\bin\heroku 中,那么您可以在Git Bash中运行:

  / c / Program \ Files / Heroku / bin / heroku登入

如果这样做(它应该),
,那么你可以将它添加到 PATH 像这样:

  PATH =$ PATH:/ c / Program \ Files / Heroku / bin
pre>

请注意,Heroku可能也需要 PATH
等其他程序,例如MySQL和红宝石。
找到它们的绝对路径
,并以 heroku 的方式添加目录到 PATH 本身在上面的例子中。

如果不是Git Bash,
你想在CMD中工作,
的过程是相同的,
但打印并设置 PATH 的语法不同:

  echo%PATH%
set PATH =C:\ Program Files \Heroku\bin;%PATH%


I've been having some issues installing the Heroku toolbelt on Windows 10, 64-bit.

It's the first time I install Heroku. I downloaded it from https://toolbelt.heroku.com/windows.

After installing, I tried launching a new Git Bash and typing heroku login but what I got back was bash: heroku: command not found

Running the same command on Windows Powershell, what I got back was

'MYSQL' is not recognized as an internal or external command,
operable program or batch file.
'MYSQL' is not recognized as an internal or external command,
operable program or batch file.

Any suggestions? I thought that googling those lines would help, but I haven't found much.

I followed the recommendation from here, but now when typing heroku login on the Powershell, nothing happens. Nothing changes on the Git Bash.

I checked, and the Heroku folder was added to the PATH.

I thought I'd ask for some help before installing anything else.

Thank you!

解决方案

bash: heroku: command not found

The error message is clear: Bash cannot find the heroku command, it's not on your PATH.

I checked, and the Heroku folder was added to the PATH.

It seems you didn't check it correctly. Note that even if it looks correct in the PATH settings window, Git Bash might have a different PATH configured. To see the PATH in Git Bash, run:

echo $PATH

When debugging path issues, it's best to first run heroku with the absolute path. For example if it's in C:\Program Files\Heroku\bin\heroku then you can run in Git Bash with:

/c/Program\ Files/Heroku/bin/heroku login

If this works (and it should), then you can add it to PATH like this:

PATH="$PATH:/c/Program\ Files/Heroku/bin"

Note that Heroku will likely need other programs too on the PATH, such as MySQL and Ruby. Find their absolute paths, and add there directories to PATH the same way as heroku itself in the above example.

If instead of Git Bash, you want to work in CMD, the procedure is the same, but the syntax to print and set PATH is different:

echo %PATH%
set PATH="C:\Program Files\Heroku\bin;%PATH%"

这篇关于在Windows 10上安装Heroku Toolbelt的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆