heroku命令存在于这些Ruby版本中? [英] The heroku command exists in these Ruby versions?
本文介绍了heroku命令存在于这些Ruby版本中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我用rbenv更新我的Ruby版本后,我无法使用Heroku命令行工具。
我得到这个错误:
After I updated my Ruby version with rbenv I wasn't able to use the Heroku command-line tool. I got this error:
> heroku
rbenv: heroku: command not found
The `heroku' command exists in these Ruby versions:
2.0.0-p195
从 toolbelt.heroku.com 重新安装工具腰带, 't help。
Reinstalling the tool belt from toolbelt.heroku.com didn't help.
推荐答案
我切换到以前的Ruby版本2.0.0p195并卸载了gem'heroku'
I switched to my previous Ruby version 2.0.0p195 and uninstalled the gem 'heroku'
rbenv global 2.0.0p195
gem uninstall heroku
然后,我切换到最新的Ruby版本2.0.0p353,并重新安装了Toolbelt toolbelt.heroku.com
Then I switched to the latest Ruby version 2.0.0p353 and reinstalled Toolbelt toolbelt.heroku.com
rbenv global 2.0.0p353
这篇关于heroku命令存在于这些Ruby版本中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文